Commit Graph

28437 Commits

Author SHA1 Message Date
Campbell Barton
bda9a2dc8b ensure dirty flags / index arrays are in a valid state before & after executing a BMO in debug mode. 2011-11-16 13:06:49 +00:00
Campbell Barton
496a078810 fix for error in last commit, also make BM_ElemIndex_Validate() check dirty flag and complain if its set when it didnt need to be (this function isnt called yet) 2011-11-16 12:56:33 +00:00
Campbell Barton
da849bbfc0 prepare for flagging the bmesh has having invalid index values, so we can skip looping over all elements if its already valid.
- went over every BM_SetIndex call and added comments about its use, if its setting dirty values or correct ones.
- replace loops over all elements _just_ to set index values, with a new function, BM_ElemIndex_Ensure(...), this will eventually only initialize values when they are dirty.
2011-11-16 12:38:40 +00:00
Campbell Barton
dfe90e54cd set the index on newly added vert/edge/faces
added BM_ElemIndex_Ensure(...), not used yet.
2011-11-16 06:17:56 +00:00
Campbell Barton
c00c0134e0 svn merge -r41847:41899 ^/trunk/blender 2011-11-16 03:10:15 +00:00
Joshua Leung
9f46ca46a6 Partial Bugfix: [#29229] Outliner RMB commands unexpected results
This commit implements the Unlink and Make Single User capabilities for World
datablocks in the Outliner
2011-11-16 00:13:38 +00:00
Brecht Van Lommel
0792ab3652 Fix #29232: on background render where it could not find the .blend file, the
default cube would be rendered instead, now stops processing arguments after
failed file load.
2011-11-15 23:03:35 +00:00
Brecht Van Lommel
8db117a81a Fix #28936: UV unwrap issue with meshes with inconsistent normals. 2011-11-15 21:16:37 +00:00
Brecht Van Lommel
4cc8677f1c Fix: part of 3d view header disappears when collapsing menus. 2011-11-15 20:19:15 +00:00
Sergey Sharybin
e8502b7f5f Typo fixes in descriptions. 2011-11-15 20:02:45 +00:00
Brecht Van Lommel
4c12550fe8 Fix #29208: Text.clear() and Text.write() did not redraw text editor. 2011-11-15 19:46:56 +00:00
Brecht Van Lommel
c7ec8a2e54 Fix for #29165 bugfix: adding nodes from shift+A menu in node editor did nothing. 2011-11-15 18:24:17 +00:00
Campbell Barton
0c7a25cd0e patch [#28993] wm_window_match_do(): Fix crash on null pointer dereference
from Ola Jeppsson (olajep)

also some cleanup edits
2011-11-15 16:38:48 +00:00
Campbell Barton
f403d9a2b1 replace rna description string limits with rna define RNA_DYN_DESCR_MAX 2011-11-15 15:24:57 +00:00
Campbell Barton
2bc7821913 add support for python __doc__ comments in menu classes showing in the tooltip, since menus are used as buttons too. 2011-11-15 14:58:14 +00:00
Campbell Barton
47ad078402 show tooltips for menus, currently works for operators and enum properties which are can be accessed as menus from the UI (camera overlay enum for example) 2011-11-15 14:20:57 +00:00
Campbell Barton
205b554bef access mesh string data layer as bytes since this is low level data storage 2011-11-15 14:01:24 +00:00
Campbell Barton
3ecb7b951e fix [#29272] Dynamic Paint crashes on duplicating a particle system
smoke had this same bug too
2011-11-15 13:45:24 +00:00
Sergey Sharybin
eb1e24bbe6 One more description became easier to understand 2011-11-15 12:32:58 +00:00
Campbell Barton
735eb3774b patch [#27708] API for adding mesh properties
from Geoffrey Bantle (briggs)
2011-11-15 12:28:13 +00:00
Sergey Sharybin
3d724d8df5 Camera tracking: made some options more easy to understand
- Changed some names so now people who aren't really familiar with
  motion tracking can understand what they exactly means
- Also cleaned up and rephraded some descriptions
- Changed behavior of operator which creates empty for 2d tracks:
  now it operates on all selected tracks rather than active track only
- Added checkbox to enable/disable rotation stabilization
2011-11-15 12:20:58 +00:00
Joshua Leung
355710f414 Follow-up commit to r.41765
Reviewed behaviour of selection operators, and decided that ultimately, it's
better if select left/right/column didn't change the channel selections at all.
This is because with the highlighting of the active curve nowadays, it's a bit
distracting to suddenly lose track of it after performing these operations, when
you may have been trying to select all of the keyframes on that curve for
further tweaking.
2011-11-15 12:02:44 +00:00
Campbell Barton
6a340c1eb0 py/rna api was calling RNA_property_type more often then needed (no functional change) 2011-11-15 11:56:54 +00:00
Joshua Leung
1a47f9516e Formatting cleanup. No functional changes 2011-11-15 11:34:49 +00:00
Campbell Barton
cc93e476ab correct off by one error in previous commit, also add assert incase idproperty length gets out of sync. 2011-11-15 11:04:29 +00:00
Campbell Barton
3cf56d46d1 add IDP_EqualsProperties support for comparing non-null terminated byte strings. 2011-11-15 10:32:08 +00:00
Campbell Barton
4de917326b de-duplicate some idproperty py api code, also improve some exception messages. 2011-11-15 10:19:44 +00:00
Bastien Montagne
995ca539d0 Fixed compilation error in writeffmpg.c (caused by recent IDProp changes). 2011-11-15 10:01:18 +00:00
Bastien Montagne
ba9b5f41ec Minor: added the description of expected string format for the template_list's "prop_list" parameter (was missing in bpy ref...). 2011-11-15 09:42:00 +00:00
Campbell Barton
d4d80ee0a1 rename IDProp.c/h to idprop_py_api, since it was same name as BKE idprop.c with case changed. 2011-11-15 09:28:15 +00:00
Campbell Barton
8623935aa8 pass a pointer to IDP_New's IDPropertyTemplate rather then a copy. 2011-11-15 09:22:52 +00:00
Campbell Barton
2ab1732613 support for non-null terminated byte strings in id properties (as a subtype of IDP_STRING types) 2011-11-15 09:12:10 +00:00
Campbell Barton
697726468e fix for own error, BLI_replace_extension would strip the filename if there wasn't already an extension. 2011-11-15 07:35:28 +00:00
Campbell Barton
ab3295db33 fix for crash in blenderplayer when the engine isnt fount. 2011-11-15 07:30:26 +00:00
Campbell Barton
d6c1009195 bytestring support for py/rna - this is so py can access data which
isn't meant to be accessed as unicode text.
2011-11-15 07:09:41 +00:00
Sergey Sharybin
8a0da0b59e Fix #29202: Crash - VSE Cross strip probably leads to this
Crash was caused by several conditions:
- Frame which failed to decode tried to be converted to RGB colorspace
  and some filters like deinterlacing used to be applied as well
  (it's avscale stuff sws_scale where crash happened).
- In some cases it happened reading of freed memory when calling
  sws_scale function. Looks like it happened because of freeing
  packet on which decoding of frame finished and reading next packet.

Solved this two issues by making YUV->RGB conversion as soon as
frame was decoded in ffmpeg_decode_video_frame (such postprocessing
used to happen in callee of this function ffmpeg_fetchibuf), so now
sws_scale would be called before freeing packet on which decoding of
frame finished and it wouldn't be called in cases when decoding of
frame failed.

If decoding of frame failed, it'll be black ibuf returned to the sequencer.
2011-11-15 07:00:01 +00:00
Sergey Sharybin
e8906f5254 Fix #29253: 3D Manipulator: "Active Element" not supported for curves
This funcitonality simply wasn't implemented for curves yet, implemented it now.
2011-11-15 06:37:47 +00:00
Sergey Sharybin
4371db4b33 Fix #29165: Arrow keys not working correct in Compositing Node Editor
Bug is caused because of how ui_handle_menu_event works -- it makes quite tricky check
in which direction movement happens depending on button type.

Checked usages for uiItemV and found that it's used in node_editor only, so changed type
of button used there, so ui_handle_menu_event works would detect right direction of
movement.
2011-11-15 06:33:33 +00:00
Campbell Barton
f72c668c07 add back feature from 2.4x - Shift+Del to delete objects from all scenes. 2011-11-15 04:11:01 +00:00
Campbell Barton
502081879b remove unused OceanModifierData member & use smaller flags where possible 2011-11-15 03:48:25 +00:00
Campbell Barton
e6e265b2b5 svn merge -r41779:41847 ^/trunk/blender 2011-11-15 02:58:06 +00:00
Campbell Barton
e59ab6486f svn merge -r41751:41779 ^/trunk/blender 2011-11-15 02:05:32 +00:00
Brecht Van Lommel
3442c16c09 Fix #29249: mapping node not keyable anymore, restore RNA to what it was before
Cycles change, generating RNA paths for this is a bit complicated.
2011-11-14 20:39:53 +00:00
Brecht Van Lommel
bc98d4e383 Fix #29238: crash with node dependency loop. 2011-11-14 20:26:23 +00:00
Brecht Van Lommel
2ab2423b06 Cycles:
* Fix #29257: nan-pixels with zero roughness for glass/glossy.
* Fix #29239: crash with border rendering, this is not working yet, but should
  no longer crash now.
* Show object name in 3d view rendered draw type.
* Attempt to improve Sample as Light option description.
2011-11-14 19:45:21 +00:00
Bastien Montagne
21fa7e0b86 Some UI messages fixes and tweaks in recent merges (found while translating in french). 2011-11-14 19:13:52 +00:00
Andrew Wiggin
35ab6cabbf fix a leak from the CD_POLYINDEX changes that occurs for certain modifiers (when re-calculating normals over an existing ^C_NORMALs layer) 2011-11-14 17:38:34 +00:00
Dalai Felinto
d6e0508746 Text Editor: implement space-as-tab navigation
When "use tab as space" is on we will jump the spaces as if they were one single tab when navigating (left/right).
Tabsize still is hardcoded to 4, but this is a separate design issue left for another patch.

* patch done in the airplane while expaining the Text Editor code for a potencial new coder @ Blender PRO 2011 *
2011-11-14 17:33:32 +00:00
Brecht Van Lommel
e731ffb648 Cycles: Oren-Nayar BSDF support. This is not a separate shader node, rather it
is available through the Roughness input on the Diffuse BSDF.
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/Shaders#Diffuse

Patch by Yasuhiro Fujii, thanks!
2011-11-14 17:31:47 +00:00
Miika Hamalainen
90871d54c5 Fix: Last triangle wasn't always drawn when VBO enabled. 2011-11-14 16:34:11 +00:00