mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 20:58:38 +02:00
fix rollup-to-parent code to only roll up to entity parents
This commit is contained in:
parent
5da5b24894
commit
0b60928dd3
1 changed files with 3 additions and 2 deletions
|
@ -294,8 +294,9 @@ ensureDynamic = function (entityID) {
|
||||||
};
|
};
|
||||||
|
|
||||||
findGroupParent = function (controllerData, targetProps) {
|
findGroupParent = function (controllerData, targetProps) {
|
||||||
while (targetProps.parentID && targetProps.parentID !== NULL_UUID && targetProps.parentID !== AVATAR_SELF_ID) {
|
while (targetProps.parentID &&
|
||||||
// XXX use controllerData.nearbyEntityPropertiesByID ?
|
targetProps.parentID !== NULL_UUID &&
|
||||||
|
Entities.getNestableType(targetProps.parentID) == "entity") {
|
||||||
var parentProps = Entities.getEntityProperties(targetProps.parentID, DISPATCHER_PROPERTIES);
|
var parentProps = Entities.getEntityProperties(targetProps.parentID, DISPATCHER_PROPERTIES);
|
||||||
if (!parentProps) {
|
if (!parentProps) {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue