Fix Cycles time limit not showing unit when scene units are set to none

This commit is contained in:
Brecht Van Lommel
2023-10-23 12:09:34 +02:00
parent 1dd8fb8f5f
commit 34a11f962f

View File

@@ -2489,7 +2489,8 @@ bool ui_but_is_unit(const uiBut *but)
}
if (unit->system == USER_UNIT_NONE) {
if (unit_type != PROP_UNIT_ROTATION) {
/* These types have units irrespective of scene units. */
if (!ELEM(unit_type, PROP_UNIT_ROTATION, PROP_UNIT_TIME_ABSOLUTE)) {
return false;
}
}