Bastien Montagne
6926596174
More new data names translation (most cases should be covered now).
...
Also done a few cleanup here and there...
2013-03-25 08:29:06 +00:00
Campbell Barton
1b4c9e1ad4
beautify fill: skip testing invalid cases (2 triangles that _don't_ have 4 unique verts between them).
2013-03-25 04:48:30 +00:00
Campbell Barton
e1a54214bb
code cleanup:
...
- remove unused defines.
- quiet some shadow warnings.
- bevel, ifdef out some asserts that are too common.
- style
2013-03-25 02:41:30 +00:00
Antony Riakiotakis
153eea5f23
Fix #34730 , set special brush rotation to zero if brush is not rake or
...
anchored.
2013-03-25 01:42:58 +00:00
Campbell Barton
5e7372a7ce
cancel face/edge creation operator if nothing is done (so it wont register or do an undo push)
2013-03-25 01:25:46 +00:00
Campbell Barton
00e3aa529e
patch [ #34763 ] Center the View to the ZDepth Position under the Mouse Cursor
...
from Ralf Holzemer (cheleb)
use Fkey in object mode (since its a mode-less fly).
2013-03-25 01:11:16 +00:00
Antony Riakiotakis
ceb3225db7
Alpha mask textures porting part 1: Support for projective texturing.
...
Also add random mapping to brushes.
2013-03-25 01:00:16 +00:00
Campbell Barton
48a256c910
fix [ #34745 ] TGA with size of 4Kx8K won't load
...
Checked the size limit on TGA files in svn history and this is was just an arbitrary limit that might have made sense some years back, but not now.
2013-03-24 20:59:53 +00:00
Andrea Weikert
ae1325c963
FIX: [ #34467 ] File Browser Deletes Unselected Files
...
* delete now acts on selected file(s) rather than the highlighted file.
2013-03-24 19:29:49 +00:00
Campbell Barton
8bf206ce4b
edit to 55549, replace fake click event with call to uiButActiveOnly().
...
also make it more clear args are for rna buttons.
2013-03-24 19:08:24 +00:00
Ton Roosendaal
d74cf43575
UI small fixes:
...
- Theme color for the brush popup was not correctly coded. Now it follows menu item
style correctly, which also allows all the themes we have to give readable text.
- RMB cancel also added for slider buttons and the color picker.
2013-03-24 18:59:15 +00:00
Thomas Dinges
bf295c1c36
Code cleanup:
...
* Remove non used booleanops_mesh.c and header, got obsolete with Carve.
2013-03-24 18:14:38 +00:00
Ton Roosendaal
82ffa62e90
Small feature:
...
While using number sliders, you can now press RMB to cancel (like ESC)
2013-03-24 16:43:40 +00:00
Ton Roosendaal
1165236f69
Usablity:
...
In text editor, the CTRL+F find now opens property region (or keeps it) and
activates the search button for input.
That's already nice! But next step should be to do a search on exit of
the button (or while typing). That's stuff I need Campbell to help with though.
Notes:
- Probably Py api for property buttons could get an "operator=" arg?
- The warning menu "not found" should go away
- I also suggest to make "wrap" search default for new editors
2013-03-24 13:43:40 +00:00
Thomas Dinges
c4ae6f2c36
Fix for [ #34747 ] Rendering invisible tiles
...
* reset_session() was not taking render percentage into account in case persistent_data was enabled.
* also deprecate old "maximsize" DNA variable.
2013-03-24 10:52:20 +00:00
Campbell Barton
08aef8a7c8
code cleanup: move doxy docs from headers into source. also replace strncpy();str[len]=0 with BLI_strncpy() in BLI_stringdec().
2013-03-24 01:51:54 +00:00
Campbell Barton
92d7955d13
fix for struct definition building with msvc2008 and some style cleanup.
2013-03-24 01:19:55 +00:00
Campbell Barton
224c7a273a
code cleanup: quiet shadow warning.
2013-03-23 17:11:03 +00:00
Campbell Barton
5a87e4d255
code cleanup: remove unused button type HSVSLI
2013-03-23 16:03:13 +00:00
Ton Roosendaal
1c32b516f7
Theme fix:
...
Node Editor and Sequencer were not using grid theme color, but 'back'.
This commit adds versioning to copy background color to grid. I do this
without increasing sub-version, which allows to add correct drawing when
the subversion has to go up anyway for something else.
2013-03-23 12:46:07 +00:00
Thomas Dinges
349c5ecc95
Cycles:
...
* Avoid an unnecessary condition in light.cpp, (totarea > 0.0f) is always true inside the "if(kintegrator->use_direct_light)" branch.
2013-03-23 10:11:29 +00:00
Thomas Dinges
838c263be1
Constraint UI:
...
* Hide Script Constraint from UI, not functional.
* Alphabetical order fix for Motion tracking constraints.
2013-03-23 08:47:29 +00:00
Thomas Dinges
259880de6f
Code cleanuo:
...
* Remove already commented "use_radiosity" flag from RNA.
* Remove some commented exceptions for old 2.4x 3D View preview region.
* Remove empty and commented function declarations from 2.4x UI times
2013-03-23 08:38:53 +00:00
Thomas Dinges
961df69526
Code cleanup:
...
* Remove already deprecated USER_DISABLE_AA flag from code, only commented DNA flag left.
2013-03-23 08:25:29 +00:00
Thomas Dinges
dd713654d5
Code cleanup:
...
* Use bpy.app.build_options for UI checks rather than custom ones.
2013-03-23 06:55:59 +00:00
Mitchell Stokes
2006103a52
OpenGL: Moving the GPU_pass_update_uniforms() call from GPU_material_bind_uniforms() to GPU_material_bind(). This way, material specific uniforms don't need to be resent when sending object specific uniforms. This saves uniform update calls in the BGE where one material is bound and multiple objects can be drawn. This doesn't offer much in the way of performance, but it cleans up our OpenGL usage a bit. One test scene went from 8k OpenGL calls to 4k with just this one change.
2013-03-23 03:11:48 +00:00
Mitchell Stokes
1356e3b490
BGE: getting rid of a few maybe-uninitialized warnings.
2013-03-23 03:04:02 +00:00
Campbell Barton
dad877bc3b
fix for BGE crash replicating a navmesh.
2013-03-22 20:19:55 +00:00
Miika Hamalainen
327f0a0f8e
Fix [ #34721 ]: Smoke adaptive domain threshold ignores high resolution data.
...
In some cases high resolution domain could have higher density than the low resolution counterpart, causing adaptive domain to clip off areas where density is still above domain threshold. Now also high resolution data is used to determine domain bounds.
2013-03-22 17:11:32 +00:00
Miika Hamalainen
4074768493
Fix [ #34685 ]: Dynamic paint sub-steps don't work if brush is animated through parent chain longer than 2 objects.
...
Maximum number of parents updated is now 5. Hopefully this will be enough until Blender has better subframe sampling system.
2013-03-22 17:08:55 +00:00
Campbell Barton
cb1d26d794
code cleanup: shadowing, adjust type.
2013-03-22 15:47:02 +00:00
Lukas Toenne
750be44f31
Added missing node->id pointer checks in case node groups have unavailable node_tree data blocks.
2013-03-22 15:46:38 +00:00
Lukas Toenne
25fc8b3d76
Fix #34728 , Int values in script Node can't be changed. Was caused by a bad typecast of the node socket default_value, which caused invalid value range.
2013-03-22 15:39:10 +00:00
Sergey Sharybin
16618bc3a8
Add missing comment for m_isResolutionSet
2013-03-22 14:54:02 +00:00
Sergey Sharybin
6e777ded99
Increase hard limit for prefetch frames to INT_MAX
...
Don't see why it could give issues to use large number
of frames to be prefetched, but just in case make it
unlimited hard limit and kept soft limit still at 500.
2013-03-22 14:41:52 +00:00
Campbell Barton
9379dcb507
code cleanup: unused defines, shadowing and unintended enum-as-variable.
2013-03-22 14:31:03 +00:00
Pablo Vazquez
1d68c28541
spaces->tabs
2013-03-22 13:53:58 +00:00
Lukas Toenne
309c487b96
Fix for the use_hidden_preview setting in SpaceNode. The application of this flag to new nodes got lost during merges at some point. Also is now in the python node.add_node operator as well as the C function.
2013-03-22 13:08:37 +00:00
Pablo Vazquez
7f86b8afeb
Nodes editor,
...
Draw an extra outline on hidden nodes that have custom colors, otherwise you can't recognize them unless you unhide.
Example: http://pasteall.org/pic/show.php?id=42359
2013-03-22 12:57:32 +00:00
Ton Roosendaal
fbdec13005
Bug fix #34405
...
On opening a text editor for first time, and use search (CTRL+F) the scrollers were not
correct initialized, so the view would jump a bit on redraw.
2013-03-22 12:00:29 +00:00
Ton Roosendaal
5fb95d5567
Bug fix #34726
...
Appending a group (which adds all object members to scene), didn't follow the
setting "In active layer".
One note: only the scene layers are copied over, not local view3d layers.
2013-03-22 11:14:04 +00:00
Lukas Toenne
70319509ba
Node preview merge function now has an additional option "remove_old", which could be used if previous previews should be retained after recalculating (not used currently, old previews are dropped entirely for now, because it could be confusing).
...
Also moved the sync and merge for previews into the respective tree callbacks for consistency. This way the handling of previews can be changed for each tree type individually if necessary.
2013-03-22 10:34:52 +00:00
Sergey Sharybin
19476cead4
Enable previews for inactive compo output and viewer nodes.
...
This keeps old behavior and could be nice. However, it'll
make compositing slower (doing final compo after editing
tree). This is easy to hide preview in this case, and also
i hope to implement percentage rendering soon.
2013-03-22 10:10:21 +00:00
Sergey Sharybin
88683ce71c
Fix #34720 : Sculpt mode T panel has no texture preview
...
Cycles was not able to render texture icons, same actually
goes to lux. Now made it so blender internal is used to render
icons for textures.
2013-03-22 09:42:16 +00:00
Sergey Sharybin
afe46eeb40
Fix #34689 : Multilayer EXRs don't load correctly if one layer is named and the other is not
...
OpenEXR's ChannelList.layers() will not include empty layer names,
which caused the issue. Made it so if there's one non-empty layer
name, check for empty names happens.
If there's empty layer name in case one non-empty layer name, file
will be considered multilayer now.
2013-03-22 09:18:35 +00:00
Lukas Toenne
f11f6d179e
Fix for compositor node preview sizes: Use the render output aspect ratio for estimating the required preview rect size instead of assuming a square, to avoid wasted space. Note that this does not work for newly added nodes until they have first been evaluated and a preview image has been generated (same behavior as before pynodes merge and associated preview changes).
2013-03-22 08:50:56 +00:00
Campbell Barton
75a5e239d7
correct enums which were in fact variables defined in headers.
2013-03-22 05:46:39 +00:00
Campbell Barton
a79e10157d
code cleanup: use NULL rather then 0 for pointers, and make vars static where possible.
...
also found unintentionally defined enum/struct variables that where only meant to be defining the type.
2013-03-22 05:34:10 +00:00
Campbell Barton
dd0e2da784
code cleanup: use booleans and const's for operator vars.
2013-03-22 04:40:45 +00:00
Campbell Barton
e537fae726
fix error with merge operator not handing error cases properly (errors wouldn't cancel the operator as they should).
...
was mixing up OPERATOR_CANCELLED with 0.
2013-03-22 04:39:43 +00:00