# Defold 1.9.7 has been released

**URL:** <https://forum.defold.com/t/defold-1-9-7-has-been-released/79650>\
**Category:** Release notes\
**Created:** [February 3, 2025, 3:03pm UTC](https://forum.defold.com/t/defold-1-9-7-has-been-released/79650 "2025-02-03T15:03:56Z")\
**Posts on this page:** 5\
**Page:** 3

<div class="post-metadata">

**Author:** ![Pawel](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pawel/32/24623_2.png) [@Pawel](https://forum.defold.com/u/Pawel)\
**Post date:** [February 14, 2025, 2:35pm UTC](https://forum.defold.com/t/defold-1-9-7-has-been-released/79650/41 "2025-02-14T14:35:05Z")

</div>

Looks like Chrome 😃

---

<div class="post-metadata">

**Author:** ![selimanac](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/selimanac/32/6397_2.png) [@selimanac](https://forum.defold.com/u/selimanac)\
**Post date:** [February 14, 2025, 2:50pm UTC](https://forum.defold.com/t/defold-1-9-7-has-been-released/79650/42 "2025-02-14T14:50:24Z")

</div>

> [@Alexander\_Bulatov](#):
>
> Oh, that’s probably because I used the logo from builtins.  
> [selimanac](https://forum.defold.com/u/selimanac), 404 error

Yep, it didn’t load from built-ins.

![Screenshot 2025-02-14 at 17.48.26](https://forum-defold-uploads.b-cdn.net/optimized/3X/1/e/1eb50897e050cfabe6485cfb331393d84c554895_2_690x13.png)

---

<div class="post-metadata">

**Author:** ![robotiger77](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/robotiger77/32/41314_2.png) [@robotiger77](https://forum.defold.com/u/robotiger77)\
**Post date:** [March 2, 2025, 3:35pm UTC](https://forum.defold.com/t/defold-1-9-7-has-been-released/79650/43 "2025-03-02T15:35:25Z")

</div>

When I update my custom render script to the newest version (after [this commit](https://github.com/defold/defold/commit/5005a904c6a502a21dfaff17eff65987c1cb5964)) I’m getting the below error when building:

```lua
ERROR:SCRIPT: render/custom.render_script:80: bad argument #1 to '__mul' (matrix4 expected, got nil)
stack traceback:
  [C]:-1: in function __mul
  render/custom.render_script:80: in function update_camera
  render/custom.render_script:104: in function update_state
  render/custom.render_script:316: in function <render/custom.render_script:310>

```

As the camera projection is nil, it throws a multiplication error. I don’t know why the projection was nil, but I have just added a second check - of the projection function return value, as below:

```lua
local function update_camera(camera, state)
    if camera.projection_fn and camera.projection_fn(camera, state) then
        camera.proj = camera.projection_fn(camera, state)
        camera.options.frustum = camera.proj * camera.view
    end
end

```

And it works fine.

Maybe it’s something to take a look at. Or maybe it’s just me, I don’t know for sure 😉

---

<div class="post-metadata">

**Author:** ![jhonny.goransson](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/jhonny.goransson/32/3864_2.png) [@jhonny.goransson](https://forum.defold.com/u/jhonny.goransson)\
**Post date:** [March 2, 2025, 3:50pm UTC](https://forum.defold.com/t/defold-1-9-7-has-been-released/79650/44 "2025-03-02T15:50:01Z")

</div>

Hm that seems like a bug to me, could you share a repro or something that I can look at?

---

<div class="post-metadata">

**Author:** ![robotiger77](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/robotiger77/32/41314_2.png) [@robotiger77](https://forum.defold.com/u/robotiger77)\
**Post date:** [March 3, 2025, 5:30am UTC](https://forum.defold.com/t/defold-1-9-7-has-been-released/79650/45 "2025-03-03T05:30:26Z")

</div>

Here’s the repro:  
[mul-repro.zip](https://forum.defold.com/uploads/short-url/fpyUMhLZClXaqDzLjd4cQFb8qHd.zip) (496.6 KB)

It looks like the problem arises after adding `msg.post("@render:", "use_camera_projection")` to the camera object init function. So, I don’t know if it still classifies as a bug, because this is not the way to do it currently.

[Previous page](https://forum.defold.com/t/defold-1-9-7-has-been-released/79650.md?page=2)
