Core: Add getPlacementOf replacing previous getGlobalPlacement logic. (#26059)

* Core: Add getPlacementOf replacing previous getGlobalPlacement logic.

* Update src/App/DocumentObject.cpp

Co-authored-by: Kacper Donat <kadet1090@gmail.com>

* Update DocumentObject.cpp

* Fix error when called from python with targetObj == None

---------

Co-authored-by: Kacper Donat <kadet1090@gmail.com>
This commit is contained in:
PaddleStroke
2025-12-10 22:47:20 +01:00
committed by GitHub
parent c12ca7b3ba
commit 7a8135d863
11 changed files with 368 additions and 35 deletions

View File

@@ -383,7 +383,7 @@ def getGlobalPlacement(ref, targetObj=None):
rootObj = ref[0]
subName = ref[1][0]
return App.GeoFeature.getGlobalPlacementOf(targetObj, rootObj, subName)
return rootObj.getPlacementOf(subName, targetObj)
def isThereOneRootAssembly():