Cleanup: use bool for unwrap cancel argument
This commit is contained in:
@@ -266,7 +266,7 @@ const wmTimer *ED_uvedit_live_unwrap_timer();
|
||||
*/
|
||||
void ED_uvedit_live_unwrap_begin(Scene *scene, Object *obedit, struct wmWindow *win_modal);
|
||||
void ED_uvedit_live_unwrap_re_solve();
|
||||
void ED_uvedit_live_unwrap_end(short cancel);
|
||||
void ED_uvedit_live_unwrap_end(bool cancel);
|
||||
|
||||
void ED_uvedit_live_unwrap(const Scene *scene, blender::Span<Object *> objects);
|
||||
void ED_uvedit_add_simple_uvs(Main *bmain, const Scene *scene, Object *ob);
|
||||
|
||||
@@ -185,7 +185,7 @@ void uvedit_live_unwrap_update(SpaceImage *sima, Scene *scene, Object *obedit)
|
||||
if (sima && (sima->flag & SI_LIVE_UNWRAP)) {
|
||||
ED_uvedit_live_unwrap_begin(scene, obedit, nullptr);
|
||||
ED_uvedit_live_unwrap_re_solve();
|
||||
ED_uvedit_live_unwrap_end(0);
|
||||
ED_uvedit_live_unwrap_end(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2118,7 +2118,7 @@ void ED_uvedit_live_unwrap_re_solve()
|
||||
}
|
||||
}
|
||||
|
||||
void ED_uvedit_live_unwrap_end(short cancel)
|
||||
void ED_uvedit_live_unwrap_end(const bool cancel)
|
||||
{
|
||||
if (g_live_unwrap.timer) {
|
||||
wmWindow *win = g_live_unwrap.timer->win;
|
||||
|
||||
Reference in New Issue
Block a user