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:
Mark Blair 2022-11-16 18:05:22 +01:00 committed by Bastien Montagne
parent 27ee432965
commit c79b5d9325
Notes: blender-bot 2023-02-14 18:12:47 +01:00
Referenced by issue #102383, Failure importing x3d file
1 changed files with 2 additions and 2 deletions

View 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: