[Bf-extensions-cvs] [c79b5d93] blender-v3.4-release: FIX T102383: X3D Import: Initialize bpyob properly.

Mark Blair noreply at git.blender.org
Wed Nov 16 18:07:31 CET 2022


Commit: c79b5d93258cd8eac579d18a268d4a0400b85673
Author: Mark Blair
Date:   Wed Nov 16 18:05:22 2022 +0100
Branches: blender-v3.4-release
https://developer.blender.org/rBAc79b5d93258cd8eac579d18a268d4a0400b85673

FIX T102383: X3D Import: Initialize bpyob properly.

bpyob was being accessed on line #3568 without being initialized.

Reviewed By: mont29

Differential Revision: https://developer.blender.org/D16455

===================================================================

M	io_scene_x3d/import_x3d.py

===================================================================

diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py
index 228e0507..f89be897 100644
--- a/io_scene_x3d/import_x3d.py
+++ b/io_scene_x3d/import_x3d.py
@@ -3563,8 +3563,8 @@ def load_web3d(
                 # Assign anim curves
                 node = defDict[key]
                 if node.blendData is None:  # Add an object if we need one for animation
-                    node.blendData = node.blendObject = bpy.data.objects.new('AnimOb', None)  # , name)
-                    bpycollection.objects.link(node.blendObject)
+                    bpyob = node.blendData = node.blendObject = bpy.data.objects.new('AnimOb', None)  # , name)
+                    bpycollection.objects.link(bpyob)
                     bpyob.select_set(True)
 
                 if node.blendData.animation_data is None:



More information about the Bf-extensions-cvs mailing list