state_manager->add_state(&state_zoom);
- if(false) {
- // Disabled this tool because it should be
- // considered deprecated. Use the bline tool instead.
- state_manager->add_state(&state_polygon);
-
- // These tools are disabled for now,
- // because they tend to confuse users.
- state_manager->add_state(&state_draw);
- state_manager->add_state(&state_sketch);
- state_manager->add_state(&state_width);
- }
+ // Disabled this tool because it should be
+ // considered deprecated. Use the bline tool instead.
+ if(getenv("SYNFIG_ENABLE_POLYGON")) state_manager->add_state(&state_polygon);
+
+ // These tools are disabled by default for now,
+ // because they tend to confuse users.
+ if(getenv("SYNFIG_ENABLE_DRAW" )) state_manager->add_state(&state_draw);
+ if(getenv("SYNFIG_ENABLE_SKETCH")) state_manager->add_state(&state_sketch);
+ if(getenv("SYNFIG_ENABLE_WIDTH" )) state_manager->add_state(&state_width);
studio_init_cb.task("Init ModPalette...");
module_list_.push_back(new ModPalette()); module_list_.back()->start();