Skip to content

Commit

Permalink
Fix attribute storing error
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyWinch committed May 16, 2024
1 parent e4d484d commit ed9438f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def execute(self, context):
addon_prefs = bpy.context.preferences.addons[__package__.split('.')[
0]].preferences

if addon_prefs.attribute is None or addon_prefs.attribute not in aobj.data.attributes or aobj.data.attributes[addon_prefs.attribute].domain != 'CORNER' or aobj.data.attributes[addon_prefs.attribute].data_type != 'FLOAT_VECTOR':
if addon_prefs.attribute is None or addon_prefs.attribute not in aobj.data.attributes:
self.report({"ERROR"}, "Set attribute does not exist!")
return {"CANCELLED"}
if aobj.data.attributes[addon_prefs.attribute].domain != 'CORNER':
Expand Down Expand Up @@ -126,7 +126,7 @@ def execute(self, context):
addon_prefs = bpy.context.preferences.addons[__package__.split('.')[
0]].preferences

if addon_prefs.attribute is None or addon_prefs.attribute not in aobj.data.attributes or aobj.data.attributes[addon_prefs.attribute].domain != 'CORNER' or aobj.data.attributes[addon_prefs.attribute].data_type != 'FLOAT_VECTOR':
if addon_prefs.attribute is None or addon_prefs.attribute not in aobj.data.attributes:
self.report({"ERROR"}, "Set attribute does not exist!")
return {"CANCELLED"}
if aobj.data.attributes[addon_prefs.attribute].domain != 'CORNER':
Expand Down

0 comments on commit ed9438f

Please sign in to comment.