From acac7ac51bcb4cf5c8bfb792bda0cde78943294b Mon Sep 17 00:00:00 2001 From: tetektoza Date: Sun, 8 Jun 2025 21:59:02 +0200 Subject: [PATCH] BIM: Fix Arch_SectionPlane having incorrect display style upon init Regressed from previous behavior - there was Arch's refactor and the base element that `SectionPlane` was inheriting from was `App::FeaturePython`, not `Part::FeaturePython`. This changes a lot, since `Part::FeaturePython` has predefined color (black in this case), which later on - during property set of `SectionPlane` in properties caused skipping of preferred setup of color. --- src/Mod/BIM/Arch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/BIM/Arch.py b/src/Mod/BIM/Arch.py index 900d495a97..979ff4c888 100644 --- a/src/Mod/BIM/Arch.py +++ b/src/Mod/BIM/Arch.py @@ -1201,7 +1201,7 @@ def makeSectionPlane(objectslist=None, name=None): from WorkingPlane import get_working_plane sectionPlane = _initializeArchObject( - "Part::FeaturePython", + "App::FeaturePython", baseClassName="_SectionPlane", internalName="Section", defaultLabel=name if name else translate("Arch", "Section"),