Commit Graph

66005 Commits

Author SHA1 Message Date
Campbell Barton
7f0239033b Text3d: font family dupli-objects now follow rotation of the curve path 2014-01-06 02:05:14 +11:00
Campbell Barton
5ff0d465ee Text3d: minor edits to the API, remove BKE_vfont_to_curve_nubase_ex 2014-01-06 01:49:21 +11:00
Campbell Barton
3b024d63fe Text3d: fix font family feature for unicode and correct tooltip 2014-01-06 01:37:19 +11:00
Campbell Barton
38bbd9c778 Text3d: paste additions
- Add paste from system clipboard which behaves like paste from file.
- Paste from file now replaces the selection rather then just adding to the end.
- Move paste operations into the 'Edit' menu.
- Added generic paste functions: font_paste_wchar, font_paste_utf8.
- Fix paste max length check not taking the selection length into account.
2014-01-06 00:39:13 +11:00
Sergey Sharybin
b0ab91c0a4 Code cleanup: fix type in malloc id string 2014-01-05 17:26:32 +06:00
Sergey Sharybin
039652a3e8 Fix memory leak caused by main library split
Evaluation Context wasn't freed for temporary mains.
2014-01-05 17:26:28 +06:00
Sergey Sharybin
a2bf25e8ff Fix crash when having multiple text objects sharing the same curve datablock
Issue was caused by BKE_vfont_to_curve() modifying curve->nurbs list which
gave threading issues.

Now added BKE_vfont_to_curve_nubase() which operates on a given nurbs list
base which is local in do_makeDispListCurveTypes().

By the looks of it it wouldn't give speed regression because previously it
also was creating nurbs for every font object sharing the same curve data.
2014-01-05 17:26:13 +06:00
Sergey Sharybin
ac3d33af73 Code cleanup: preprocessor indentation inside #ifdef block 2014-01-05 17:23:29 +06:00
Campbell Barton
99d050f88b Text3d: selection in editmode now follows rotated text along path 2014-01-05 22:20:33 +11:00
Campbell Barton
42bd5d7c80 Text3d: fix for smallcaps modifying the original text input in editmode.
Oversight in own recent commit to avoid allocating a new wchar_t array.
2014-01-05 21:15:25 +11:00
Campbell Barton
3eb818e53a Text3d: smallcaps wasnt working properly for text-on-path 2014-01-05 21:15:25 +11:00
Campbell Barton
4eed4b3bcd Text3d: remove sepchar, old feature which no longer has any UI access. 2014-01-05 21:15:24 +11:00
Campbell Barton
e20f357cc2 Text3d: error in own recent fix for thread safety 2014-01-05 21:15:24 +11:00
Antony Riakiotakis
d9697bc145 Fix T38024 crash when rebuilding sculpt mode buffers.
Main issue here is that glBuf* calls were invoked from threads different than
main thread. This caused a crash (since those do not have a GL context active).

Fix here is twofold:
* add an ID buffer in buffer pool that handles pbvh buffers and is freed
from main thread when gpu_buffer_pool_free_unused is called.

* do not create glbuffers in derivedmesh creation routine, rather tag nodes
for update and create those in the draw function
(guaranteed to be called from main thread)

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D169
2014-01-05 04:58:27 +02:00
Bastien Montagne
0074eac1ed More tweaks to clip middle:
* Do not apply margins with MENU (i.e. dropdowns) either.
* When middle clipping would remove only a few chars, rather clip right part!
2014-01-04 16:50:42 +01:00
Bastien Montagne
76d9244843 Fix core issue with clipping labels (labels have no margins, so border should be 0 in this case!). 2014-01-04 16:18:08 +01:00
Campbell Barton
f25dbe320f Text API: make text.current_line_index writable
use for setting the text position when writing system info.
2014-01-05 01:24:10 +11:00
Campbell Barton
0a3ce15ce3 Revert "Quick fix for system info text always being scrolled out of view when loaded for the first time"
This can be done without extending the API, using RNA access instead.
2014-01-05 01:13:06 +11:00
Antony Riakiotakis
1f2aec71b4 Fix for previous commit...sorry! 2014-01-04 13:47:40 +02:00
Antony Riakiotakis
baa1ae0749 Fix MinGW32 compilation 2014-01-04 13:39:10 +02:00
Joshua Leung
1db7f2f93d Quick fix for system info text always being scrolled out of view when loaded for the first time
Added an API method to Text datablocks for moving the cursor to a specific line in the
file. This makes it possible to reset the cursor position at the end of the sysinfo
operator.
2014-01-05 01:24:54 +13:00
Thomas Dinges
6063c58cc6 UI / 3D Toolbar: Animation panel had a too large gap at the top. 2014-01-04 13:03:46 +01:00
Campbell Barton
6734936c13 RNA API: use bool's for enum itemf callbacks. 2014-01-04 18:10:01 +11:00
Campbell Barton
b9114cb609 UI: Use bool rather then int/short's where possible 2014-01-04 18:10:01 +11:00
Brecht Van Lommel
091740f858 Mesh Bisect: add header info message for modal operation
Fixes T37700

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D166
2014-01-04 05:41:58 +01:00
Sergej Reich
e505203e8d Units: Add milligrams for mass
Avoids having small values displayed as "0kg".
2014-01-04 04:22:20 +01:00
Sergej Reich
4915706df6 Revert "Units: Make grams base unit for mass"
This reverts commit ead6d397fd.
2014-01-04 04:22:20 +01:00
Sergej Reich
ea1ed3f4aa Rigidbody: Code cleanup
Convert int to bool.
2014-01-04 04:22:20 +01:00
Campbell Barton
cde3ff75d9 UI: Fix issue where tab text was too small and closely spaced 2014-01-04 13:55:40 +11:00
Campbell Barton
c3bc2fd941 CMake: cleanup and add include 2014-01-04 13:17:07 +11:00
Campbell Barton
a335137607 CMake: fix for OpenEXRConfig.h not being found on some Linux systems 2014-01-04 13:16:41 +11:00
Campbell Barton
fa4260ced9 Code Cleanup: use cmake case matching other find modules 2014-01-04 12:46:18 +11:00
Campbell Barton
fd6ef46d6d KDTree: ensure balance runs before usage (in debug mode) 2014-01-04 10:44:02 +11:00
Jonathan Williamson
1af82c0194 Add "Basic" and "Options" tabs for Mesh Edit Mode.
This creates the initial two tabs for Edit Mode to makes the new toolbar tabs usable. Further toolbar organization is to follow, but this at least makes the features work with the current organization.
2014-01-03 16:21:52 -06:00
Jonathan Williamson
8ccca6440e Add missing separator between Group: and Parent: 2014-01-03 15:28:19 -06:00
Jonathan Williamson
bab51c78cb Rename "Objects" to "Group:" and separate parent operators into "Parent:" section.
This also shortens the naming for the operators since they're now under clear labels.
2014-01-03 15:28:19 -06:00
Jonathan Williamson
aadce94f22 Rename Add to Group and Remove from Group operators in the toolbar.
The default operator names are too long and rather "obtuse" to use @Billrey's words.
2014-01-03 15:28:19 -06:00
Jonathan Williamson
bf3a4acffc Fix formatting on section names in the Relations tab. 2014-01-03 15:28:19 -06:00
Jonathan Williamson
0641bb1117 Rename "Object" to "Operations" in the 3D View Toolbar Basic tab.
This makes the naming less confusing, since all of the tools apply to objects.
2014-01-03 15:28:19 -06:00
Jonathan Williamson
83c9b80867 Fix alignment of Grease Pencil options. 2014-01-03 15:28:19 -06:00
Jonathan Williamson
53ef7a9932 Remove individual panels for primitive objects, adding only primary ones.
This makes for a much cleaner panel with a lot less wasted space. Thanks DingTo for the suggestions.
2014-01-03 15:28:19 -06:00
Jonathan Williamson
11bb89a632 Cleanup the Grease Pencil panel of the 3D View Toolbar.
This makes the panel slightly cleaner, giving more separation between the distinct elements. It also adds a new "Measure" label, so that the Ruler/Protractor is not so closely "related" to the Grease Pencil.
2014-01-03 15:28:19 -06:00
Jonathan Williamson
8a3923107c Add Undo/Redo and Undo History to the History tab of the 3D View Toolbar 2014-01-03 15:28:18 -06:00
Jonathan Williamson
addf274ce4 Add "Bake Action" to Animation tab of 3D View Toolbar.
This is based on the rationale here, in order to begin giving a more complete set of animation tools to the toolbar: https://developer.blender.org/file/data/hlt2vtyqo4iqwookyack/PHID-FILE-ghcjwtxvl7siwidxlw6b/3D_View_Object_Mode_Tools.png
2014-01-03 15:28:18 -06:00
Jonathan Williamson
a22a2c6fd7 Adding Relations category to 3D View Toolbar.
This creates the tab for relations in the toolbar. This tab includes those operators that relate to objects relationships with other objects and data.
2014-01-03 15:28:18 -06:00
Jonathan Williamson
c36070299f Adding remaining object categories to the Create tab of the 3D View Toolbar.
This adds the remaining object categories to the Create tab, including Nurb Surfaces, Lamps, Meta objects, etc. I've also updated the labeling for the various buttons to be consistent with one another.
2014-01-03 15:28:18 -06:00
Jonathan Williamson
2fbfa76808 Add "Add Curve" buttons to 3D View Toolbar
This creates a series of buttons in the 3D View toolbar to add new curve objects to the scene. This new panel is categorized under the Create tab.
2014-01-03 15:28:18 -06:00
Jonathan Williamson
153d415f1d Add Mesh buttons for 3D View Toolbar
This adds buttons in the 3D View toolbar to add new mesh objects to the scene. These buttons are added via the Create tab/category, soon to be populated with other object types as well.

A panel is added for both Object mode and Edit mode so as to not display in incorrect context (such as Pose Mode).
2014-01-03 15:28:18 -06:00
Jonathan Williamson
3a3cce2e9b Basic Tab for Object Mode 3D View Toolbar
This updates the organization and naming of the Basic tab for the 3D View toolbar. It reorganizes the tools that were already there and adds Mirror and Duplicate Linked object operators.
2014-01-03 15:28:18 -06:00
Jonathan Williamson
428a8d5980 Object Mode Toolbar Tabs
Summary:
Here are the initial tabs for the 3D View Object Mode toolbar. This is based on the discussions between myself and @billrey in T37569

P.S. apologies for the duplicate. The first one I mistakenly sent to the Edit Mode task, T37568. I have corrected it and also made a couple changes, per @campbellbarton's request.

Reviewers: campbellbarton

CC: campbellbarton, brecht, billrey

Maniphest Tasks: T37569

Differential Revision: http://developer.blender.org/D129
2014-01-03 15:28:18 -06:00