Fix T47387: Cycles Point Density Render Issues

This commit is contained in:
Sergey Sharybin 2016-02-11 15:48:29 +01:00
parent 6767c61a9b
commit 1d0e084834
Notes: blender-bot 2023-02-14 08:13:42 +01:00
Referenced by issue #47387, Cycles Point Density Render Issues
1 changed files with 6 additions and 0 deletions

View File

@ -3231,6 +3231,9 @@ int BKE_object_obdata_texspace_get(Object *ob, short **r_texflag, float **r_loc,
case ID_ME:
{
Mesh *me = ob->data;
if (me->bb == NULL || (me->bb->flag & BOUNDBOX_DIRTY)) {
BKE_mesh_texspace_calc(me);
}
if (r_texflag) *r_texflag = &me->texflag;
if (r_loc) *r_loc = me->loc;
if (r_size) *r_size = me->size;
@ -3240,6 +3243,9 @@ int BKE_object_obdata_texspace_get(Object *ob, short **r_texflag, float **r_loc,
case ID_CU:
{
Curve *cu = ob->data;
if (cu->bb == NULL || (cu->bb->flag & BOUNDBOX_DIRTY)) {
BKE_curve_texspace_calc(cu);
}
if (r_texflag) *r_texflag = &cu->texflag;
if (r_loc) *r_loc = cu->loc;
if (r_size) *r_size = cu->size;