mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
Added the file extension to the viewpoint guid comparison
This commit is contained in:
committed by
Dion Moult
parent
8722350c0b
commit
53def55dc9
@@ -1215,7 +1215,7 @@ class ActivateBcfViewpoint(bpy.types.Operator):
|
|||||||
assert blender_topic
|
assert blender_topic
|
||||||
topic = bcfxml.topics[blender_topic.name]
|
topic = bcfxml.topics[blender_topic.name]
|
||||||
if self.viewpoint_guid:
|
if self.viewpoint_guid:
|
||||||
viewpoint_guid = self.viewpoint_guid
|
viewpoint_guid = self.viewpoint_guid + ".bcfv"
|
||||||
if viewpoint_guid not in topic.viewpoints:
|
if viewpoint_guid not in topic.viewpoints:
|
||||||
self.report({"ERROR"}, f"No such viewpoint in the active topic: '{viewpoint_guid}'.")
|
self.report({"ERROR"}, f"No such viewpoint in the active topic: '{viewpoint_guid}'.")
|
||||||
return {"CANCELLED"}
|
return {"CANCELLED"}
|
||||||
|
|||||||
Reference in New Issue
Block a user