density doesn't work for subentities (rev 4525)

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

density doesn't work for subentities (rev 4525)

Post by Commander McLane »

Apparently the density key doesn't work for subentities.

I've got an entity with two subentities which are each identical to the entity. With density = 1 they have a total mass of 480, each of them 160.

Now I gave all of them density = 0.2 and expected 1/5 of 480 = 96. But I got 352. Only explanation: the main entity got the correct density of 0.2 and mass of 32, but the subentities stuck to their mass of 2 * 160 = 320.

I also tried to give the subentities a density > 1, with the same result. The key seems to be ignored altogether for subentities.


EDIT: fixed nonsensical typo; but the problem got fixed anyway :D
Last edited by Commander McLane on Wed Apr 27, 2011 7:32 pm, edited 1 time in total.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: density doesn't work for subentities (rev 4525)

Post by JensAyton »

Should be fixed in r4528.
Post Reply