Cleanup: various non-functional changes for C++
This commit is contained in:
@@ -891,14 +891,14 @@ static CombinedKeyingResult insert_key_layered_action(
|
||||
Main *bmain,
|
||||
Action &action,
|
||||
Layer &layer,
|
||||
Slot &slot,
|
||||
const Slot &slot,
|
||||
PropertyRNA *prop,
|
||||
const std::optional<StringRefNull> channel_group,
|
||||
const std::string &rna_path,
|
||||
const float frame,
|
||||
const Span<float> values,
|
||||
const eInsertKeyFlags insert_key_flags,
|
||||
const KeyframeSettings key_settings,
|
||||
const KeyframeSettings &key_settings,
|
||||
const BitSpan keying_mask)
|
||||
{
|
||||
BLI_assert(bmain != nullptr);
|
||||
|
||||
@@ -2874,7 +2874,7 @@ void file_directory_enter_handle(bContext *C, void * /*arg_unused*/, void * /*ar
|
||||
return;
|
||||
}
|
||||
|
||||
Main *bmain = CTX_data_main(C);
|
||||
const Main *bmain = CTX_data_main(C);
|
||||
char old_dir[sizeof(params->dir)];
|
||||
|
||||
STRNCPY(old_dir, params->dir);
|
||||
@@ -2961,7 +2961,7 @@ void file_filename_enter_handle(bContext *C, void * /*arg_unused*/, void *arg_bu
|
||||
return;
|
||||
}
|
||||
|
||||
Main *bmain = CTX_data_main(C);
|
||||
const Main *bmain = CTX_data_main(C);
|
||||
uiBut *but = static_cast<uiBut *>(arg_but);
|
||||
|
||||
file_expand_directory(bmain, params);
|
||||
|
||||
@@ -286,7 +286,7 @@ bool user_string_to_number(bContext *C,
|
||||
return BPY_run_string_as_number(C, nullptr, str_unit_convert, &err_info, r_value);
|
||||
}
|
||||
|
||||
int success = BPY_run_string_as_number(C, nullptr, str, &err_info, r_value);
|
||||
bool success = BPY_run_string_as_number(C, nullptr, str, &err_info, r_value);
|
||||
*r_value = BKE_unit_apply_preferred_unit(unit, type, *r_value);
|
||||
*r_value /= unit_scale;
|
||||
return success;
|
||||
|
||||
@@ -593,7 +593,7 @@ float AnimationImporter::convert_to_focal_length(float in_xfov,
|
||||
void AnimationImporter::Assign_lens_animations(const COLLADAFW::UniqueId &listid,
|
||||
AnimData &adt,
|
||||
const double aspect,
|
||||
Camera *cam,
|
||||
const Camera *cam,
|
||||
const char *anim_type,
|
||||
int fov_type)
|
||||
{
|
||||
@@ -841,7 +841,6 @@ void AnimationImporter::translate_Animations(
|
||||
}
|
||||
|
||||
AnimationImporter::AnimMix *animType = get_animation_type(node, FW_object_map);
|
||||
bAction *act;
|
||||
Main *bmain = CTX_data_main(mContext);
|
||||
|
||||
if ((animType->transform) != 0) {
|
||||
|
||||
@@ -185,7 +185,7 @@ class AnimationImporter : private TransformReader, public AnimationImporterBase
|
||||
void Assign_lens_animations(const COLLADAFW::UniqueId &listid,
|
||||
AnimData &adt,
|
||||
double aspect,
|
||||
Camera *cam,
|
||||
const Camera *cam,
|
||||
const char *anim_type,
|
||||
int fov_type);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user