Cleanup: compiler warnings
This commit is contained in:
parent
b762f8da9c
commit
e3ffc8bbfb
|
@ -1081,8 +1081,8 @@ blender::bke::greasepencil::Layer &GreasePencil::add_layer(
|
|||
blender::bke::greasepencil::LayerGroup &group, const blender::StringRefNull name)
|
||||
{
|
||||
using namespace blender;
|
||||
StringRefNull checked_name;
|
||||
/* TODO: Check for name collisions and resolve them. */
|
||||
/* StringRefNull checked_name; */
|
||||
return group.add_layer(name);
|
||||
}
|
||||
|
||||
|
|
|
@ -63,10 +63,12 @@ template<class T> static inline const T *get_original(const T *id)
|
|||
|
||||
/* Check whether the ID is suitable to be an input of the dependency graph. */
|
||||
/* TODO(sergey): Move the function and check to a more generic place. */
|
||||
#ifndef NDEBUG
|
||||
bool is_valid_input_id(const ID &id)
|
||||
{
|
||||
return (id.tag & LIB_TAG_LOCALIZED) || DEG_is_original_id(&id);
|
||||
}
|
||||
#endif
|
||||
|
||||
} // namespace
|
||||
|
||||
|
|
Loading…
Reference in New Issue