Cleanup: warnings, style
This commit is contained in:
@@ -134,7 +134,7 @@ void BKE_object_data_transfer_layout(
|
||||
|
||||
bool BKE_object_data_transfer_mesh(
|
||||
struct Scene *scene,
|
||||
struct Object *ob_src, struct Object *ob_dst, const int data_types, bool use_create,
|
||||
struct Object *ob_src, struct Object *ob_dst, const int data_types, const bool use_create,
|
||||
const int map_vert_mode, const int map_edge_mode, const int map_loop_mode, const int map_poly_mode,
|
||||
struct SpaceTransform *space_transform, const bool auto_transform,
|
||||
const float max_distance, const float ray_radius, const float islands_handling_precision,
|
||||
|
||||
@@ -39,7 +39,7 @@ size_t BLI_timecode_string_from_time(
|
||||
ATTR_NONNULL();
|
||||
|
||||
size_t BLI_timecode_string_from_time_simple(
|
||||
char *str, size_t maxlen, double time_seconds)
|
||||
char *str, size_t maxlen, const double time_seconds)
|
||||
ATTR_NONNULL();
|
||||
|
||||
size_t BLI_timecode_string_from_time_seconds(
|
||||
|
||||
@@ -398,7 +398,7 @@ RenderLayersCyclesDebugOperation::RenderLayersCyclesDebugOperation(
|
||||
int debug_pass_type)
|
||||
: RenderLayersBaseProg(pass, RE_debug_pass_num_channels_get(debug_pass_type))
|
||||
{
|
||||
switch(m_elementsize) {
|
||||
switch (m_elementsize) {
|
||||
case 1:
|
||||
this->addOutputSocket(COM_DT_VALUE);
|
||||
break;
|
||||
|
||||
@@ -425,7 +425,7 @@ static bool PE_create_shape_tree(PEData *data, Object *shapeob)
|
||||
}
|
||||
|
||||
DM_ensure_looptri(dm);
|
||||
return bvhtree_from_mesh_looptri(&data->shape_bvh, dm, 0.0f, 4, 8);
|
||||
return (bvhtree_from_mesh_looptri(&data->shape_bvh, dm, 0.0f, 4, 8) != NULL);
|
||||
}
|
||||
|
||||
static void PE_free_shape_tree(PEData *data)
|
||||
|
||||
Reference in New Issue
Block a user