consider _decal in leak detection
point entities recognition is malformed in general leak is about point entities, detection by origin key presence is weak, because there may exist entity w/o this key at 0 0 0 group entities may have origin too detection by primitives presence haven't been working for _decal, as its primitive gets freed at this point
This commit is contained in:
parent
db07c3459d
commit
e1f3b25bc6
|
|
@ -673,7 +673,7 @@ int FloodEntities( tree_t *tree ){
|
|||
}
|
||||
#endif
|
||||
/* also allow bmodel entities outside, as they could be on a moving path that will go into the map */
|
||||
if ( e->brushes != NULL || e->patches != NULL ) {
|
||||
if ( e->brushes != NULL || e->patches != NULL || ent_class_is( e, "_decal" ) ) { //_decal primitive is freed at this point
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user