Mitchell Stokes
4fac29ca0e
Revert "Fix T40257: Frustum culling not working properly"
...
This reverts commit 315609ec0c .
This fix still causes more issues than it solves.
2015-01-07 20:38:05 -08:00
Antony Riakiotakis
ae18fd5937
Fix invalid memory access in gradient brushes - could cause a crash in
...
MacOS.
This looks like an oldie and should not influence release, but if we do
make an 'a' build it's safe to include.
Report by Craig Jones, thanks!
2015-01-07 23:01:42 +01:00
Bastien Montagne
ef05bc5dd7
Quite warning about unused func.
...
(not my day...)
2015-01-07 19:47:31 +01:00
Bastien Montagne
cda149b9c8
Remove 'ensure previews' call from write code.
...
Sorry about that, should have checked this stuff more, with Internal material
renders are very fast (unoticable), but with Cycles it can take (a lot of) time,
like several minutes or more.
Will probably fall back to a dedicated operator users will have to fire themselves
when they want previews in their files.
2015-01-07 19:38:13 +01:00
Lukas Tönne
19169de9f7
Recalculate particle pathcache stuff for all particles instead of
...
trying to be smart.
This breaks child interpolation otherwise because sometimes parent
paths are not calculated and give bad clumping results.
2015-01-07 16:16:40 +01:00
Martin Felke
e0e9cd0163
PyAPI: Call to get the pixel x,y in a text block
...
This allows scripts to request the screen location of any (line, column) pair.
2015-01-08 01:22:11 +11:00
Bastien Montagne
14f2597d7e
More tweak to preview commit - do not 'render' non-used IDs either.
...
Thanks to Campbell for the headup.
2015-01-07 14:10:14 +01:00
Bastien Montagne
5bbb8a0d9d
Ugh, forgot to invert that one in previous commit, sorry for the noise...
2015-01-07 12:46:18 +01:00
Bastien Montagne
820b6b3731
Ensure mat/tex/etc. previews are generated/saved in .blend files when enabled in userprefs.
...
Reviewers: campbellbarton
Differential Revision: https://developer.blender.org/D970
2015-01-07 12:31:31 +01:00
Sergey Sharybin
3f05797333
Followup to fe3e000: no need to exit pose mode on operator redo
...
This is to be backported to the release branch.
2015-01-07 15:38:32 +05:00
Campbell Barton
29d2c71117
Fix for bool flag use
2015-01-07 12:08:55 +11:00
Campbell Barton
848c00f7e7
cleanup: de-duplicate code
2015-01-07 12:08:54 +11:00
Joshua Leung
3bd01c6056
Fix: Segfault in Image Editor when transforming GPencil Strokes
2015-01-07 13:19:49 +13:00
Joshua Leung
45c7af6c9c
Fix: Missing updates for UI panels and main region when using Grease Pencil in Image Editor
2015-01-07 13:12:37 +13:00
Joshua Leung
bafabf4eda
Fix: Restored "Draw Poly" to D Ctrl RMB, as D Alt LMB was blocked by Alt-D (duplicate) keymap
2015-01-07 12:41:25 +13:00
Thomas Dinges
257d513aa8
Cycles: Allow negative values in Combine XYZ node.
2015-01-06 22:53:15 +01:00
julianeisel
70f3a47d57
Event System Cleanup: Modifier Key Assignment Switch
...
Was quite messy previously, think this is much more readable and easier to follow.
2015-01-06 20:33:22 +01:00
julianeisel
eefb393cfd
Fix T40435: Fix event system modifier key handling
...
This partial reverts rBd800cffaf10cb7, but fixes T40435 (Background label is not
redrawn).
It now isn't possible to use single modifier keys as shortcuts anymore. But this
is something that's not really useful at all, since it breaks more than it allows.
2015-01-06 18:48:36 +01:00
Campbell Barton
8e73b770d4
Remove slurph shape-key feature
...
This is an old option which wasn't working in over a year without complaint.
2015-01-07 02:06:37 +11:00
Antony Riakiotakis
0527183090
Fix copy-paste of colors to generated color not being correct. '
...
Change generated color property to gamma space to match the add new
image operator.
2015-01-06 15:48:18 +01:00
Dalai Felinto
d36fb8e34e
Logic Bricks *must* be kept in alphabetical order
2015-01-06 12:29:48 -02:00
Howard Trickey
bf168f0600
Fix T43137: vertex bevel percent mode wasn't implemented.
2015-01-06 09:13:38 -05:00
Campbell Barton
e9d6350e7e
Sequencer: show extensions when preview enabled
2015-01-06 23:11:20 +11:00
Sebastian Koenig
e961c06a6e
Fix T43143: DPX header wrong, making it impossible to import to other software
...
The issue was caused by the single letter in header, which is expected to be
captial as per standard: http://www.simplesystems.org/users/bfriesen/dpx/S268M_Revised.pdf
2015-01-06 13:47:53 +05:00
Campbell Barton
77c926933b
cleanup: warnings
2015-01-06 19:09:56 +11:00
Campbell Barton
1829c049be
Correct args from recent mathutils refactor
2015-01-06 19:09:55 +11:00
Campbell Barton
bf0c8e116d
PyAPI: add PyList_APPEND
...
This appends while giving ownership to the list, avoiding temp assignment.
This matches PyList_SET_ITEM which bypasses refcount's
Note, this also reduce code-size, Py_DECREF is a rather heavy macro.
2015-01-06 19:09:53 +11:00
Campbell Barton
9fd569a654
PyAPI: add utilities PyTuple_SET_ITEMS, Py_INCREF_RET
...
Setting all values of a tuple is such a common operation that it deserves its own macro.
Also added Py_INCREF_RET to avoid confusing use of comma operator.
2015-01-06 19:09:11 +11:00
Jorge Bernal
ee58d44945
BGE: Fix for bugs T42520 and T42097 (mouse look actuator related).
...
With this fix the mouse actuator movement works well as with even screen resolutions as odd screen resolutions.
Also it fixed the movement when the border of the blenderplayer window is out of the screen limits.
Reviewed By: moguri
Differential Revision: https://developer.blender.org/D946
2015-01-05 22:07:35 -08:00
Campbell Barton
2d2bfd416b
Fix T43122: Shrinkwrap target, wrong linked object
2015-01-06 14:01:18 +11:00
Campbell Barton
62f2b751f8
UI: refactor button string get/set into functions.
2015-01-06 11:05:08 +11:00
julianeisel
ffd06de470
Correction to previous commit
...
Just realized menu buttons are using hardmin and hardmax for a bad hack which will make the assert fail :/
2015-01-06 00:02:57 +01:00
Bastien Montagne
c91e64faa6
Fix/cleanup very ugly and unsafe usage of but->str in ui_but_update().
...
Currently, but->str should never be smaller than but->strdata, but code shall
not rely on this.
Further more, but->strdata is 'only' 128 chars, this could become limit with some
translations, if the org label is already rather long, leading to truncated str
(Chinese e.g. can only store about 40 chars in strdata).
2015-01-05 21:38:15 +01:00
julianeisel
e7a9bf88d2
Fix T43111: Node Editor (Slider) Draw Glitch
...
* don't allow Node Editor input max value to be less then min value
* avoid the num slider drawing glitch if softmin equals softmax
* assert if softmax/hardmax is smaller than softmin/hardmin
With this, we sort of allow softmin/hardmin and softmax/hardmax being the same.
2015-01-05 21:05:17 +01:00
Antony Riakiotakis
22ce525bcd
More border clamping removed.
2015-01-05 14:26:56 +01:00
Antony Riakiotakis
8a547af2bd
Remove border clamping. Usually we just want to clamp to edge instead.
...
Note - checked all glTexImage functions and we never use that. Border is
ifdefed out too here.
2015-01-05 14:25:22 +01:00
Bastien Montagne
89b654dc56
FileBrowser: small tweak to new search feature: clear that string when changing dir.
...
In 99% of cases, you do not want to keep the same filter when changing dir,
and having to reset it by hand is *very* annoying!
2015-01-05 12:23:41 +01:00
Bastien Montagne
caf5a325b0
Outliner 'Blender file' view: Show libs used both directly and indirectly both on main level and in nested tree.
...
Request from Gooseberry team. This eases a bit managing dependancies in complex .blend files.
Reviewers: campbellbarton
Subscribers: fsiddi
Projects: #user_interface, #bf_blender:_next
Differential Revision: https://developer.blender.org/D943
2015-01-05 11:28:48 +01:00
Antony Riakiotakis
3414d01411
Use float format for high bit depth textures if available - storage
...
requirements are the same but we may avoid some clipping of float values
for HDRs when used in shaders.
2015-01-05 11:23:54 +01:00
Campbell Barton
1ef33968fd
Recent fix for SDL2 broke joysticks for SDL1.2
2015-01-05 20:23:30 +11:00
Bastien Montagne
a08c5e1183
Partial fix for T43113: Filebrowser: Empty folders do not contain go back arrow.
...
Do not allow going into un-readable directories at all.
Note we might want to reflect that 'state' in UI for users too, but that will be
for later.
Also, not quite sure this fix the windows case, will have to start my VM... :/
2015-01-04 17:57:39 +01:00
Campbell Barton
8abdc89912
Sequencer: Preview dragging playhead over strips
...
Bring back the 2.4x feature.
also show a highlight when a strip is being previewed.
2015-01-05 02:27:50 +11:00
Campbell Barton
c7eb83bc17
Fix sequencer border-flickering
...
Offscreen viewport drawing wasn't properly restoring the theme.
Add API calls to store/restore the theme so it can be temporarily overridden.
2015-01-04 23:23:17 +11:00
Campbell Barton
3447944c3f
sequencer: don't return big values (fill pointer instead)
2015-01-04 22:46:54 +11:00
Campbell Barton
44e02651ab
Fix for crash for 'Edit Source'
...
was accessing freed menu region.
2015-01-04 22:25:53 +11:00
Bastien Montagne
026cb6bdeb
FileBrowser: Cleanup: rename some (really ugly) enum names.
2015-01-04 12:04:47 +01:00
Campbell Barton
b240b8e231
Freestyle: reserve array sizes before filling
...
also use PyList_GET_ITEM when list size is known.
2015-01-04 21:23:26 +11:00
Campbell Barton
de6b546e15
Fix 8 memory leaks from bad PyList_Append use
2015-01-04 20:35:16 +11:00
Bastien Montagne
e0db0f84ac
Fix T43119: mathutils.intersect_point_line always returns a 2D vector as first value.
...
Trivial, safe for final 2.73.
2015-01-04 10:11:21 +01:00
Campbell Barton
8106a6b75d
mathutils: refactor instantiation
...
remove 'type' argument, very few mathutils objects are wrapped,
add new function for creating wrapped objects.
also fixes unlikely memory leak if the data-array can't be allocated.
2015-01-04 17:43:57 +11:00