Commit Graph

53000 Commits

Author SHA1 Message Date
Campbell Barton
4be7258f00 WM: remove windows if they fail to initialize 2015-05-28 18:46:15 +10:00
Campbell Barton
56f6aa977a Multi-value, multi-button cancel keeps value set 2015-05-28 15:52:53 +10:00
Campbell Barton
2480bbff56 Multi-value cancel, keeps scale set 2015-05-28 15:50:51 +10:00
Campbell Barton
dc1586063b BMesh: correct flag check (own mistake) 2015-05-28 12:11:35 +10:00
Campbell Barton
3e0c6a8ca2 BMesh: util functions to get edge loops from verts 2015-05-28 11:46:58 +10:00
Antony Riakiotakis
930bf58478 Clamp min/max frame rate for player 2015-05-27 20:02:53 +02:00
Antony Riakiotakis
07def553d2 Fix T44745 non manifold edges of mesh do not work when smoothing in
multires.

Code had special guards for such edges to stop this from happening. I
don't see why this is needed though since code above assigns smoothed
positions for all vertices in the grid.

After removing the guards I saw that this in fact was the only place
where grd adjacency was used, so I completely removed it.
2015-05-27 19:52:12 +02:00
Thomas Szepe
9aea98d33c BGE: Add missing m_jumping initialization 2015-05-27 18:19:38 +02:00
Bastien Montagne
c5a8a4e9d8 Fix mismatch in strings length compute in filebrowser, leading to annoying '...' in longest filename.
We must take kerning into account everywhere! Note this will disappear in upcomming filebrowser
refactor anyway.

Reported through IRC by Pablo (venomgfx), thanks.
2015-05-27 17:25:55 +02:00
Sergey Sharybin
9fc1033429 Fix T44748: Particle is not displayed definitely when I use a new dependence graph 2015-05-27 19:22:52 +05:00
Antony Riakiotakis
b52af946cd Forgot this in the last commit 2015-05-27 14:43:54 +02:00
Antony Riakiotakis
c449d4e336 Fix jpeg preview for exr renders broken. 2015-05-27 14:41:51 +02:00
Campbell Barton
4bf64e841c Correct convex-hull for recent join-tri changes 2015-05-27 21:43:35 +10:00
Gaia Clary
0e00072ff0 fix:T44856 reverted triangluation back to bmesh ( apparently broken by commit rB51f33 ) 2015-05-27 13:19:40 +02:00
Antony Riakiotakis
0e02ad8b64 Fix off by one error in display of start/end frame in sequencer. 2015-05-27 12:17:16 +02:00
Sergey Sharybin
4c1efcc829 Code cleanup, silence some warnings when building without legacy depsgraph 2015-05-27 13:10:26 +05:00
Sergey Sharybin
1fd2e6232a Fix compilation error with legacy depsgraph disabled 2015-05-27 13:09:57 +05:00
Sergey Sharybin
e665a60a85 Fix T44854: Creating hooks from curve to objects doesn't work
The issue was introduced in e529882 by doing wrong range checking.
2015-05-27 13:08:17 +05:00
Campbell Barton
da192fb3a7 Missing NULL check getting selected obdata 2015-05-27 11:14:39 +10:00
Campbell Barton
77f0f3c54e Fix parent tips staying selected after separate 2015-05-27 10:35:14 +10:00
Campbell Barton
c3810c596e Use PKey for edit-armature separate
As used already for mesh & curves.

Add confirmation menu for curve & armature,
since this isn't such a common operation and undoing leaves object data
(long term bug/todo to fix).
2015-05-27 09:56:50 +10:00
Sergey Sharybin
4ffcc6ff56 Fix T44497: Crash on deleting curve handle with hook modifier
It was possible race condition on empty curves -- it's possible that curve
object is fully updated and path is null in that cases, Proper way to deal
with this is to check curve_cache for non-NULL.
2015-05-26 22:36:18 +05:00
Campbell Barton
b90c7dd730 Building without OpenEXR works again 2015-05-26 17:49:08 +02:00
Campbell Barton
d45c4af469 Cleanup: update comment 2015-05-27 00:00:31 +10:00
Antony Riakiotakis
a23fbc71a1 Cleanup, add comment for old code. 2015-05-26 14:38:24 +02:00
Antony Riakiotakis
a64cb4185e Trying to pack image with invalid path crashes 2015-05-26 13:46:14 +02:00
Campbell Barton
8299284389 Correct own recent error, uninitialized var use 2015-05-26 21:36:49 +10:00
Sergey Sharybin
3c9da38e7e Style cleanup: space after keyword 2015-05-26 16:15:52 +05:00
Bastien Montagne
d20fd2da72 Revert "Cleanup: set var twice"
This reverts commit eb799dc350.

I recommend reading code before doing cleanup, next time...
2015-05-26 13:01:29 +02:00
Antony Riakiotakis
bfe0ea4069 Fix own sillyness 2015-05-26 12:58:32 +02:00
Antony Riakiotakis
ded0004f8b Don't crash with pie menus with more than 8 items.
This will print a warning and users will get overlap of pie buttons, but
it should be quick paper over the cracks and at least should keep
blender working until a more complete fix is coded.
2015-05-26 12:09:51 +02:00
Campbell Barton
718bc078a8 Fix T44740: Tweak events stuck (ignored release)
Tweak event was being added to the end of the event queue (out of order),
meaning any mouse releases already in the queue wouldn't be used to exit the gesture.
Gestures could get stuck (mostly when the system wasn't able to handle events fast enough).

Now tweak events are now added in order.
2015-05-26 20:07:58 +10:00
Antony Riakiotakis
de68066c1c Fix multilayer OpenEXR not supporting metadata.
This will fix exporting of metadata and importing for imbufs, but image
editor will not display these metadata since multilayer gets converted
to renderresult, which does not support metadata display yet.
This commit is more meant for external image editors/viewers.
2015-05-26 12:02:30 +02:00
Sergey Sharybin
e5fbeba0b3 Images: Solve broken forward compatibility with packed images
Use first packed image as legacy image->packedfile, so saving .blend file with
latest builds makes it so packed images are not lost when opening with previous
releases.

This will only work reliably if mutliview is not used, otherwise it'll be only
first view in the .blend file, which is rather expected since previous releases
are not aware of views.
2015-05-26 14:46:05 +05:00
Campbell Barton
de0c269c28 Fix T44821: Making warp shortcut fails
Using OBJECT prefix for editmode operators causes
shortcuts to go into the wrong keymap.
2015-05-26 17:55:34 +10:00
Campbell Barton
2c3c477223 Cleanup: warning, spelling 2015-05-26 16:46:33 +10:00
Campbell Barton
9b1ca19396 Fix RMB menu in popup, included 'Header' submenu 2015-05-26 16:45:01 +10:00
Sergey Sharybin
e4dc44d7ab Depsgraph: Fix for uninitialized variable in root depsnode 2015-05-26 11:34:18 +05:00
Campbell Barton
abf7378e44 Fix T44697: Multi-value edit /w layers fails
Not such a nice solution, but good to have this working.
2015-05-26 15:20:46 +10:00
Campbell Barton
8715fd0925 BMesh: join tris, split angle limit in two
Use a separate limit for face-angle and shape comparisons.

There was no way to join non-rectangular, co-planer tries.
2015-05-26 14:27:38 +10:00
Campbell Barton
9ce20d3341 BMesh: join tris now delimits all UV/Color layers
Previously was only checking active layers

Also add delimit by edge seam
2015-05-26 13:42:59 +10:00
Campbell Barton
eb799dc350 Cleanup: set var twice 2015-05-26 10:25:01 +10:00
Bastien Montagne
de21604cf4 Minor cleanup... 2015-05-25 22:24:46 +02:00
Bastien Montagne
1ac0fef345 Fix widget_draw_preview() not taking into account given alpha.
Needed to get correct 'inactive' effect on buttons with big previews.
2015-05-25 22:06:25 +02:00
Ines Almeida
6b5f3f5fef preview buttons: tiny optimization 2015-05-25 15:38:12 +01:00
Dalai Felinto
3a7691b73f Fix T44836: crash when multi-view is enabled and switching to BI rendered viewport display 2015-05-25 10:15:18 -03:00
Sergey Sharybin
2464395b6d Depsgraph: Avoid unnecessary char*/string conversion when creating RNAPathKey 2015-05-25 18:05:19 +05:00
Sergey Sharybin
0b9a65b2ae Fix T44709: New Depsgraph not evaluating driver interactively
Issue was caused by drivers which uses component of an array as a target,
this was not handled properly in the RNA path key.
2015-05-25 18:03:06 +05:00
Bastien Montagne
a80c1e50bc Fix T44822: python enums' itemf callback did not handle 'NULL' context case.
Enum's itemf callback can be called without context in some cases (UI, doc generation...).
Python's enum properties did not handle this at all - it's kind of odd this did not cause
more trouble and wasn't notice earlier... Probably dynamic enums using context are not
much used in py code.

Note about nodes: those are heavy users of dynamic enum with context. Now,
we expect `NodeCategory.poll()` and `NodeItem.poll()` to always be called with
a valid context (since when there is no context available, we can assume `poll()`
is always True). `NodeCategory.items()`, however, must accept NULL context, so if
you use custom `items` callable for your custom node categories, you may need
to update it (as was done here for builtin `node_group_items()`).
2015-05-25 14:24:49 +02:00
Campbell Barton
39b85e452f Fix T44815: Sound bake doesn't check filepath 2015-05-25 22:13:18 +10:00