Cleanup: fix harmless compiler warnings.
This commit is contained in:
parent
502aabb9d0
commit
c9d5d311ec
|
@ -102,7 +102,7 @@ tGPencilObjectCache *gpencil_object_cache_add(
|
|||
|
||||
cache_elem->is_dup_ob = gpencil_check_ob_duplicated(cache_array, *gp_cache_used, ob);
|
||||
|
||||
sprintf(cache_elem->ob_name, "%s", ob->id.name);
|
||||
STRNCPY(cache_elem->ob_name, ob->id.name);
|
||||
cache_elem->gpd = (bGPdata *)ob->data;
|
||||
|
||||
copy_v3_v3(cache_elem->loc, ob->loc);
|
||||
|
|
|
@ -1354,7 +1354,7 @@ static void gizmogroup_init_properties_from_twtype(wmGizmoGroup *gzgroup)
|
|||
{
|
||||
const short axis_type = gizmo_get_axis_type(axis_idx, man->axis_type_default);
|
||||
bool constraint_axis[3] = {1, 0, 0};
|
||||
PointerRNA *ptr;
|
||||
PointerRNA *ptr = NULL;
|
||||
|
||||
gizmo_get_axis_constraint(axis_idx, constraint_axis);
|
||||
|
||||
|
@ -1455,14 +1455,14 @@ static void gizmogroup_init_properties_from_twtype(wmGizmoGroup *gzgroup)
|
|||
}
|
||||
}
|
||||
|
||||
{
|
||||
if (ptr) {
|
||||
PropertyRNA *prop;
|
||||
if ((prop = RNA_struct_find_property(ptr, "constraint_axis"))) {
|
||||
RNA_property_boolean_set_array(ptr, prop, constraint_axis);
|
||||
}
|
||||
}
|
||||
|
||||
RNA_boolean_set(ptr, "release_confirm", 1);
|
||||
RNA_boolean_set(ptr, "release_confirm", 1);
|
||||
}
|
||||
}
|
||||
MAN_ITER_AXES_END;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue