Cleanup: clang-tidy, spelling

This commit is contained in:
Campbell Barton 2021-10-25 22:25:50 +11:00
parent 61bb70e0c7
commit 8cecf88dca
4 changed files with 4 additions and 4 deletions

View File

@ -728,7 +728,7 @@ void BlenderDisplayDriver::vertex_buffer_update(const Params & /*params*/)
*
* Such approach can cause some extra "jelly" effect during panning, but it is not more jelly
* than overlay of selected objects. Also, it's possible to redraw texture at an intersection of
* the texture draw parameters and the latest updated draw paaremters (altohoyugh, complexity of
* the texture draw parameters and the latest updated draw parameters (although, complexity of
* doing it might not worth it. */
const int x = texture_.params.full_offset.x;
const int y = texture_.params.full_offset.y;

View File

@ -667,7 +667,7 @@ int Scene::get_volume_stack_size() const
if (object->intersects_volume) {
/* Object intersects another volume, assume it's possible to go deeper in the stack. */
/* TODO(sergey): This might count nesting twice (A intersects B and B intersects A), but
* can't think of a computantially cheap algorithm. Dividing my 2 doesn't work because of
* can't think of a computationally cheap algorithm. Dividing my 2 doesn't work because of
* Venn diagram example with 3 circles. */
++volume_stack_size;
}

View File

@ -122,4 +122,4 @@ void attribute_search_add_items(StringRefNull str,
BLI_string_search_free(search);
}
} // namespace blender::ui
} // namespace blender::ui

View File

@ -693,7 +693,7 @@ char *UI_tree_view_item_drop_tooltip(const uiTreeViewItemHandle *item_, const wm
const std::unique_ptr<AbstractTreeViewItemDropController> drop_controller =
item.create_drop_controller();
if (!drop_controller) {
return NULL;
return nullptr;
}
return BLI_strdup(drop_controller->drop_tooltip(*drag).c_str());