Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_bake_api.c
| Context not available. | |||||
| else { | else { | ||||
| ob_cage_eval = DEG_get_evaluated_object(depsgraph, ob_cage); | ob_cage_eval = DEG_get_evaluated_object(depsgraph, ob_cage); | ||||
| ob_cage_eval->restrictflag |= OB_RESTRICT_RENDER; | ob_cage_eval->restrictflag |= OB_RESTRICT_RENDER; | ||||
| ob_cage_eval->base_flag &= ~(BASE_VISIBLE_DEPSGRAPH | BASE_ENABLED_RENDER); | ob_cage_eval->base_flag &= ~(BASE_VISIBLE | BASE_ENABLED_RENDER); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| Context not available. | |||||
| highpoly[i].ob = ob_iter; | highpoly[i].ob = ob_iter; | ||||
| highpoly[i].ob_eval = DEG_get_evaluated_object(depsgraph, ob_iter); | highpoly[i].ob_eval = DEG_get_evaluated_object(depsgraph, ob_iter); | ||||
| highpoly[i].ob_eval->restrictflag &= ~OB_RESTRICT_RENDER; | highpoly[i].ob_eval->restrictflag &= ~OB_RESTRICT_RENDER; | ||||
| highpoly[i].ob_eval->base_flag |= (BASE_VISIBLE_DEPSGRAPH | BASE_ENABLED_RENDER); | highpoly[i].ob_eval->base_flag |= (BASE_VISIBLE | BASE_ENABLED_RENDER); | ||||
| highpoly[i].me = BKE_mesh_new_from_object(NULL, highpoly[i].ob_eval, false); | highpoly[i].me = BKE_mesh_new_from_object(NULL, highpoly[i].ob_eval, false); | ||||
| /* lowpoly to highpoly transformation matrix */ | /* lowpoly to highpoly transformation matrix */ | ||||
| Context not available. | |||||
| if (ob_cage != NULL) { | if (ob_cage != NULL) { | ||||
| ob_cage_eval->restrictflag |= OB_RESTRICT_RENDER; | ob_cage_eval->restrictflag |= OB_RESTRICT_RENDER; | ||||
| ob_cage_eval->base_flag &= ~(BASE_VISIBLE_DEPSGRAPH | BASE_ENABLED_RENDER); | ob_cage_eval->base_flag &= ~(BASE_VISIBLE | BASE_ENABLED_RENDER); | ||||
| } | } | ||||
| ob_low_eval->restrictflag |= OB_RESTRICT_RENDER; | ob_low_eval->restrictflag |= OB_RESTRICT_RENDER; | ||||
| ob_low_eval->base_flag &= ~(BASE_VISIBLE_DEPSGRAPH | BASE_ENABLED_RENDER); | ob_low_eval->base_flag &= ~(BASE_VISIBLE | BASE_ENABLED_RENDER); | ||||
| /* populate the pixel arrays with the corresponding face data for each high poly object */ | /* populate the pixel arrays with the corresponding face data for each high poly object */ | ||||
| if (!RE_bake_pixels_populate_from_objects(me_low, | if (!RE_bake_pixels_populate_from_objects(me_low, | ||||
| Context not available. | |||||