Fix (unreported) missing updates after `scene.update()` removal.
This commit is contained in:
parent
d79fa2c042
commit
59c871915d
|
@ -1013,7 +1013,7 @@ class Do:
|
|||
o.hide_viewport = invisible
|
||||
o.location = self.proj(entity.basepoint)
|
||||
scene.collection.objects.link(o)
|
||||
# block_scene.update()
|
||||
# block_scene.view_layers[0].update()
|
||||
|
||||
return o
|
||||
|
||||
|
|
|
@ -960,7 +960,7 @@ class CARVER_OT_operator(bpy.types.Operator):
|
|||
ob = bpy.data.objects.new("CarverBrushCopy", context.object.data.copy())
|
||||
ob.location = self.ObjectBrush.location
|
||||
context.collection.objects.link(ob)
|
||||
context.scene.update()
|
||||
context.view_layer.update()
|
||||
|
||||
# Save default variables
|
||||
self.InitBrush['location'] = self.ObjectBrush.location.copy()
|
||||
|
|
|
@ -783,7 +783,7 @@ def createMeshFromData(self):
|
|||
|
||||
# Link object to scene and make active
|
||||
bpy.context.collection.objects.link(ob)
|
||||
bpy.context.scene.update()
|
||||
bpy.context.view_layer.update()
|
||||
bpy.context.view_layer.objects.active = ob
|
||||
ob.select_set(True)
|
||||
ob.location = Vector((10000.0, 0.0, 0.0))
|
||||
|
|
|
@ -1200,8 +1200,8 @@ class NODE_OT_povray_image_open(bpy.types.Operator):
|
|||
# im=bpy.data.images.load(self.filepath)
|
||||
# tex = context.texture
|
||||
# tex.pov.image = im.name
|
||||
# scene = context.scene
|
||||
# scene.update()
|
||||
# view_layer = context.view_layer
|
||||
# view_layer.update()
|
||||
# return {'FINISHED'}
|
||||
|
||||
class PovrayPatternNode(bpy.types.Operator):
|
||||
|
|
Loading…
Reference in New Issue