mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 06:32:09 +00:00
Minor fix
This commit is contained in:
@@ -1728,7 +1728,7 @@ class ActivateView(bpy.types.Operator):
|
|||||||
bl_label = 'Activate View'
|
bl_label = 'Activate View'
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
camera = bpy.data.objects.get(bpy.context.scene.DocProperties.available_views)
|
camera = bpy.data.objects.get('IfcGroup/' + bpy.context.scene.DocProperties.available_views)
|
||||||
if not camera:
|
if not camera:
|
||||||
return {'FINISHED'}
|
return {'FINISHED'}
|
||||||
bpy.context.scene.camera = camera
|
bpy.context.scene.camera = camera
|
||||||
|
|||||||
@@ -353,7 +353,7 @@ def getViews(self, context):
|
|||||||
for collection in views_collection.children:
|
for collection in views_collection.children:
|
||||||
for obj in collection.objects:
|
for obj in collection.objects:
|
||||||
if obj.type == 'CAMERA':
|
if obj.type == 'CAMERA':
|
||||||
views_enum.append((obj.name, obj.name, ''))
|
views_enum.append((obj.name.split('/')[1], obj.name.split('/')[1], ''))
|
||||||
return views_enum
|
return views_enum
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user