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
This commit is contained in:
parent
27ee432965
commit
c79b5d9325
Notes:
blender-bot
2023-02-14 18:12:47 +01:00
Referenced by issue #102383, Failure importing x3d file
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue