Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Ruler tool now working too

Jeremy Bullock99ca93cb9021
diff --git a/toonz/sources/tnztools/tooloptions.cpp b/toonz/sources/tnztools/tooloptions.cpp
index 5d6dcb95a..08bd8a302 100644
--- a/toonz/sources/tnztools/tooloptions.cpp
+++ b/toonz/sources/tnztools/tooloptions.cpp
@@ -1798,6 +1798,15 @@ RulerToolOptionsBox::RulerToolOptionsBox(QWidget *parent,
m_Afld->setMeasure("angle");
+ if (Preferences::instance()->getUnits() == "pixel")
+ {
+ m_Xfld->setMeasure("camera.lx");
+ m_Yfld->setMeasure("camera.lx");
+ m_Wfld->setMeasure("camera.lx");
+ m_Hfld->setMeasure("camera.lx");
+ m_Lfld->setMeasure("camera.lx");
+ }
+
m_Xfld->setObjectName("RulerToolOptionValues");
m_Yfld->setObjectName("RulerToolOptionValues");
m_Wfld->setObjectName("RulerToolOptionValues");