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:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user