Commit Graph

29587 Commits

Author SHA1 Message Date
Campbell Barton
bd80f19c22 fix [#27140] Negative Subdiv level in the operator panel.
when relative option is disabled, don't allow setting the subdiv value to a negative number.
2011-04-25 06:44:43 +00:00
Joshua Leung
8fec90e220 Displace Modifier - Optimisation Tweaks for jpbouza and ZanQdo
- When strength is 0, there's no need to perform any of the
calculations at all
- When the vertexgroup weight for a vert is set to 0, skip evaluating
the modifier for that vertex as it should result in no-change to the
final result
2011-04-25 06:27:32 +00:00
Campbell Barton
bdbf0abe60 rna api
- allow RegionView3D.view_matrix to be set.
- RegionView3D.view_rotation was inverted.
- add C function view3d_settings_from_mat()
note, intentionally removed NULL checks, double checked this is ok with callers.
2011-04-25 03:02:26 +00:00
Thomas Dinges
262eec84cd 2.5 UI scripts:
* Small cleanup of code and descriptions.
2011-04-24 20:59:19 +00:00
Campbell Barton
fd45310dfe fix crash [#27158] Appending crash with preview. 2011-04-24 14:45:49 +00:00
Campbell Barton
8fdebf24f4 harmless changes to quiet clang static check warnings.
- made EXPANDED_AGRP take bAnimContext as an argument.
- remove unneeded NULL check drawFacesColored functions.
- comment some vars which are set but not used.
2011-04-24 10:51:45 +00:00
Lukas Toenne
5c4743b9ee Another fix for node groups: Internal socket stack did not get complete initialization of the sockettype value, leading to wrong b/w outputs. 2011-04-24 05:13:35 +00:00
Sergey Sharybin
040a049fb1 Fix #27048: text + SimpleDeform modifier = weird render result!
It's not real fix, just patch which makes things better by using average
normal for each displist separately. There are still some artifacts with
quite highly deformed letters "O" or "g", but correct fix would need
to calculate derivative of modifiers, which isn't implemented yet.
2011-04-23 15:27:35 +00:00
Campbell Barton
d6d2f09dd9 quiet some clang warnings & fix for bugs in exceptional cases.
- ghost C api, BLI_get_folder_version() could assign garbage values.
- pointcache ptcache_find_frames_around() had a superfluous NULL check which would have crashed anyway if actually NULL.
2011-04-23 12:57:03 +00:00
Joshua Leung
7f56023e9b Bugfix [#27126] Ctrl 0/1/2/3/4 not working in edit mode
Keymaps for subdivision_set operator were only added for Object mode.
Since this is useful for meshes in particular, added these in EditMode
keymap for mesh editing too.
2011-04-23 11:20:30 +00:00
Joshua Leung
2060a26139 Bugfix [#27134] Minor bug in the name: property Constraint.is_valid
has label "Disabled"

"is_valid" RNA property for constraints had the property name
inverted, but the displayed name and tooltips were not inverted too
2011-04-23 11:13:36 +00:00
Joshua Leung
855a3e6ce3 Small type-tweaks (int being returned as float) 2011-04-23 11:09:24 +00:00
Sergey Sharybin
d730610457 Fix #26959: change selection of shapekeys in edit mode causes mesh deformity of a key
Vertex offset, which was used to update referenced keys was calculating between
editmesh (which represents shapekey data) and base mesh (ob->mesh) which represents
Bases key.

This commit fixes bug with incorrect ofsset calculation for case when some keys
got other (not Basis) keys as relative key by calculating offset using EditMesh
(new shapekey data) and keyblock data (which was used to create EditMesh when
entering edit mode).

This commit shouldn't lead to regressions, but maybe there's something else
which should be fixed for such kinda complicated cases -- more testing would
be welcome.
2011-04-23 09:25:34 +00:00
Sergey Sharybin
ef14d310a0 Sculpting on shapekeys
======================

All this work with sculpting on armatured/deformed mesh allowed to
implement sculpting on non-locked keys very easy -- just use the same
approach of propagating offsets from deformed PBVH to "sculpting layer".

- If key is locked, then old logic would be used.
- If there's multires modifier enabled, sculpting would happen on multires.
2011-04-23 09:07:46 +00:00
Sergey Sharybin
8ca9dc3cfe Send NA_EDITED notifier when changing tab width in text space properties
Now text editor refresh correct and there's no more glitches with messed up
syntax highlighting.
2011-04-23 08:52:27 +00:00
Lukas Toenne
f69825e8e8 Color info in node editor backdrop now supports color management. 2011-04-23 08:30:28 +00:00
Campbell Barton
176e45f88e fix for possible (but unlikely) crash.
added NULL check in case nodeAddNodeType() is given an invalid type or the dynamic node cant be found.
2011-04-23 08:02:29 +00:00
Campbell Barton
7faa531a62 fix for possible crash using an un-initialized pointer when getting a vertex weight from a non-mesh/lattice object. 2011-04-23 07:28:30 +00:00
Lukas Toenne
6b4cecc466 Fix for group output memory leak, bug #27104. This happens when an internal node in a group has multiple output buffers, but only some of them are used. Then all the buffers would be created, but the unlinked outputs were not correctly tagged for freeing after group execution. 2011-04-23 07:21:10 +00:00
Campbell Barton
25974319db skip pose slide if the RNA value isn't found. 2011-04-23 07:04:50 +00:00
Campbell Barton
d494c97b58 fix for using enter on menus which load files:
commonly Ctrl+N,Enter or Ctrl+O,Enter
2011-04-23 03:31:27 +00:00
Campbell Barton
1518d43f27 cancelling bake wasn't freeing the bake mask. 2011-04-22 16:47:17 +00:00
Campbell Barton
e520c498d2 View Dolly Operator: Ctrl+Shift+MMB.
Recently there were 2 reports about zoom not working right because at some point you can't zoom in any further.

This is not actually a bug with zoom but a limitation in blender that there is no way to move the viewpoint forward (unless you count rotate 90d, pan, rotate back which is a crummy workaround).

So adding view dolly operator:
- Supports zoom to mouse position setting.
- Supports dolly hoz/vert, invert setting.
- Moves by a fraction of the view 'dist', so the zoom distance my be roughly in proportion to the scale of objects in the scene.

only used in perspective view since this is not useful in camera/ortho view.
2011-04-22 15:34:07 +00:00
Campbell Barton
ee9ea98e48 zoom operator.
- continue zoom now uses the same options as dolly (hoz/vert & invert).
- remove event mouse coord hack to bypass touchpad zoom invert, instead pass invert as an argument.
2011-04-22 14:47:35 +00:00
Sergey Sharybin
05c7db95b6 buildbot:
Fixed typo for 64bit blenderplayer which caused undefined symbol gzopen64
2011-04-21 19:01:31 +00:00
Campbell Barton
b52637270d bugfix [#27091] Add new vertex at wrong position ( bpy.ops.mesh.dupli_extrude_cursor() ) 2
Ctrl+Click on mesh or curve view was using the selected points location or the cursors.
if either of these was behind the view it would add the point at (0, 0, 0).

now fallback to the view orbit pivot, added this option as an argument to view3d_get_view_aligned_coordinate().
2011-04-21 18:33:30 +00:00
Campbell Barton
284a0d3610 pass even mouse coords value as const so its not edited, view3d_get_view_aligned_coordinate() could modify the event->mval. 2011-04-21 17:25:58 +00:00
Campbell Barton
9646f8e5b1 ack, should have done this before tagging else bpy.app.version_char will be incorrect. 2011-04-21 16:16:12 +00:00
Campbell Barton
f9f771cd01 converted more mixed tab/space indentations to tabs. only whitespace changes. 2011-04-21 15:53:30 +00:00
Campbell Barton
210ee1ade4 whitespace only, no functional change mixed tabs/spaces --> tabs. 2011-04-21 13:11:51 +00:00
Joshua Leung
2e9982f420 Bugfix [#27095] B-Bone doesn´t resize correctly with numeric input
B-Bone resizing was acting more like translation than resizing when using numeric input. Added the flag to set all xyz values to same value when using numeric input
2011-04-21 12:48:07 +00:00
Campbell Barton
c7536d558b patch [#27094] Fix for property names in sunsky presets
from Ejner Fergo (ejnersan)
2011-04-21 12:14:10 +00:00
Campbell Barton
aa7106e4cb patch [#27070] cmake fix for nmake builds 2011-04-21 12:07:40 +00:00
Campbell Barton
96d04bd9ea re-compress png's (save some space)
optipng -o7 -zw 512 -zm 9 -i0 *.png
2011-04-21 10:03:45 +00:00
Ton Roosendaal
c605091b09 Fix for fix for the bugfix :)
Just cleaned the code/order here and added comments why this works.
I should have known it... thanks Andrea for quick action!
2011-04-21 09:43:38 +00:00
Campbell Barton
20d3022076 following on from last commit r36263.
copying metaball, lattice and armature datablocks while in editmode could segfault when they were freed, NULL these pointers on copy.
2011-04-21 09:38:09 +00:00
Campbell Barton
62a02764ab fix [#27096] Segmentation Fault trying to export DirectX with specific model
copying a mesh in editmode didnt NULL the edit_mesh pointer.
2011-04-21 09:03:04 +00:00
Campbell Barton
cb06c4eee1 remove checks on deprecated multires pointer. 2011-04-21 08:55:10 +00:00
Campbell Barton
c3d1e1f3e9 cmake - install icons into $PREFIX/share/icons/hicolor/ rather then $PREFIX/share/pixmaps/, also move blender icon into 'apps' dir. 2011-04-21 06:37:54 +00:00
Campbell Barton
817c6eebe4 patch from Jakub Steiner for freedesktop icons [#27086] install a high resolution launcher icon 2011-04-21 06:27:39 +00:00
Campbell Barton
6bb626f253 minor changes
- remove some warnings
- fix typos
- cmake allow in-source build (when WITH_IN_SOURCE_BUILD is defined)
- cmake, use an explicit list of rna files (don't glob)
2011-04-21 05:49:47 +00:00
Joshua Leung
18e4f7de4f Bugfix [#27090] Available keying set fails in armature pose mode
A change in the poll callback that Available KeyingSet used to use
restricted its use to Object-mode only, while this could also be
useful in Pose Mode (though it would only affect all channels there).

Made this use a custom poll callback now that tests for whether the
active object has an action. This does mean that if you select a bunch
of objects with animation data, but the active object doesn't have it,
then the keyingset will fail to fire, but that's been marked as a todo
in the code.
2011-04-21 01:21:28 +00:00
Campbell Barton
26916206f8 fix [#27084] Crash when chosing non-voxel data file in voxel data texture input
also found loading voxel textures wasn't closing files it opened.
2011-04-21 00:28:05 +00:00
Campbell Barton
831cc31482 fix [#27083] Crash on setting Voxel resolution below -3 in 8bit raw texture settings 2011-04-20 23:21:26 +00:00
Andrea Weikert
2d9c94604a fix crash with lots of operators when running "blender -d". Easy case to reproduce, just try to delete default cube.
Temporary hack to prevent crasher, likely caused by rev. 36242.
2011-04-20 20:46:02 +00:00
Lukas Toenne
a6c2d8680b Internal need_exec tagging for group nodes, fixes #27034. Non-compositor node trees (texture and material) only use the need_exec flag to exclude cyclic dependencies, ugly double use of that flag. Oh well, hopefully can replace this altogether one day ;) 2011-04-20 20:31:43 +00:00
Janne Karhu
290a641c32 Bug fix: "make fur" gave errors with multiple selected objects.
* Also some code changes for "make smoke" and "make fluid" to suppress some python messages that were printed to the console.
2011-04-20 17:51:56 +00:00
Janne Karhu
66b605ec93 Fix for [#27075] Explode Modifier - Apply as Shape impossible
* Explode modifier was flagged as "nonconstructive", so the "apply as shape" option was shown. And yes I know exploding things probably isn't usually considered as very constructive, but.. :P
2011-04-20 17:15:33 +00:00
Ton Roosendaal
5bd110c6ba Bugfix #27026
Outliner objects showed "active" or "selected" in confusing
ways. Now the display is simply binary, and more in line with
how other items in outliner draw:

- text is white = item is active
- color circle behind icon: shows selection state
2011-04-20 16:19:49 +00:00
Campbell Barton
8a7dce5301 update tooltip since this fixes paths from newer versions. 2011-04-20 14:47:00 +00:00