[Bf-blender-cvs] [99c981fd064] master: Cleanup: Remove redundant property UI data clear
Hans Goudey
noreply at git.blender.org
Wed Sep 1 18:46:54 CEST 2021
Commit: 99c981fd0647188184b67ab777a3c2ecb2ae68df
Author: Hans Goudey
Date: Wed Sep 1 11:46:04 2021 -0500
Branches: master
https://developer.blender.org/rB99c981fd0647188184b67ab777a3c2ecb2ae68df
Cleanup: Remove redundant property UI data clear
Since the UI data is now stored in the property, and the property is
deleted on the next line, this doesn't need to be called separately.
===================================================================
M release/scripts/startup/bl_operators/wm.py
===================================================================
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py
index f975176a1e2..379845f08a2 100644
--- a/release/scripts/startup/bl_operators/wm.py
+++ b/release/scripts/startup/bl_operators/wm.py
@@ -1388,7 +1388,6 @@ class WM_OT_properties_edit(Operator):
def execute(self, context):
from rna_prop_ui import (
- rna_idprop_ui_prop_clear,
rna_idprop_ui_prop_update,
rna_idprop_value_item_type,
)
@@ -1415,7 +1414,7 @@ class WM_OT_properties_edit(Operator):
prop_type_old = type(item[prop_old])
- rna_idprop_ui_prop_clear(item, prop_old)
+ # Deleting the property will also remove the UI data
del item[prop_old]
# Reassign
More information about the Bf-blender-cvs
mailing list