Prevent resetting selected tab on blender restart

Not sure if there is any caveats to that
This commit is contained in:
Andrej730
2023-07-11 18:23:18 +05:00
parent a5af1ad79b
commit 8e4b93fb03
+2
View File
@@ -390,6 +390,8 @@ def load_post(scene):
# https://blender.stackexchange.com/questions/140644/how-can-make-the-state-of-a-boolean-property-relative-to-the-3d-view-area
for screen in bpy.data.screens:
if len(screen.BIMAreaProperties) == 20:
continue
screen.BIMAreaProperties.clear()
for i in range(20): # 20 is an arbitrary value of split areas
screen.BIMAreaProperties.add()