mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Minor fix
This commit is contained in:
@@ -1728,7 +1728,7 @@ class ActivateView(bpy.types.Operator):
|
||||
bl_label = 'Activate View'
|
||||
|
||||
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:
|
||||
return {'FINISHED'}
|
||||
bpy.context.scene.camera = camera
|
||||
|
||||
@@ -353,7 +353,7 @@ def getViews(self, context):
|
||||
for collection in views_collection.children:
|
||||
for obj in collection.objects:
|
||||
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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user