Reputation:
In Blender, It is possible to drag the tool shelf and widgets until they fill the screen space available. But while working in blender its not good to resize the widget or tool self till it fills the screen.
so I'm trying to restrict maximizing size of the tool self and widgets. Simply disallow the resizing of Tool self and widget. From last morning till now I didn't get proper file that where I have to made changes.
Where I have to make changes in Blender's source code??
Thanks in Advance
Upvotes: 0
Views: 411
Reputation:
Finally I find out the solution for this...
In source code refer Source -> Blender -> Editors -> Screen -> "screen_ops.c" file
In that file refer function "SCREEN_OT_region_scale", and stop the invoking region of function "region_scale_invoke".
Then Blender disallow you to resize the Toggle and Widget. It remains constant.
Upvotes: 1
Reputation: 16047
I don't think it's that simple.
Here's view3d_toolbar.c
, but it's not like there's a bool is_resizable
. That sort of functionality is built into the UI itself.
The whole point of the Blender user interface is to "allow … you to change, adapt and redistribute the layout of all UI components and tools to suit the task at hand" so I don't think this will be added any time soon [source].
Why don't you just not resize the panels?
Upvotes: 1