blender.git
9 years agoAdded new command-line arguments --debug-ffmpeg and --debug-libmv to
Sergey Sharybin [Fri, 30 Mar 2012 10:37:49 +0000 (10:37 +0000)]
Added new command-line arguments --debug-ffmpeg and --debug-libmv to
be able to see debug prints coming from FFmpeg or libmv independently
of general blender debug messages.

9 years agoCamera tracking refactoring:
Sergey Sharybin [Fri, 30 Mar 2012 10:37:39 +0000 (10:37 +0000)]
Camera tracking refactoring:

- Deduplicate patetrn sampling used in esm and lmicklt trackers and
  move SamplePattern to image/sample.h - Move computation of Pearson
  product-moment correlation into own function in new file image/correlation.h
  so all trackers can use it to check final correlation.
- Remove SAD tracker. It's almost the same as brute tracker, with only two differences:
  1. It does brute search of affine transformation which in some cases helps to track
     rotating features 2. It didn't use common tracker api which probably gave some
     speed advantage, but lead to a real headache to use it together with other
     trackers leading to duplicated code in blender side.
- Switch blenedr to use brute tracker instead of sad tracker which tracking made
  source code much more simple to follow.

9 years agoCleanup: move tracking settings to be just after Track panel which makes it easier to
Sergey Sharybin [Fri, 30 Mar 2012 10:37:20 +0000 (10:37 +0000)]
Cleanup: move tracking settings to be just after Track panel which makes it easier to
control things during tracking.

9 years agostyle cleanup
Campbell Barton [Fri, 30 Mar 2012 10:00:20 +0000 (10:00 +0000)]
style cleanup

9 years agofix [#30732] bmesh: loop select continues through hidden sections.
Campbell Barton [Fri, 30 Mar 2012 09:27:54 +0000 (09:27 +0000)]
fix [#30732] bmesh: loop select continues through hidden sections.

9 years agopartial fix for [#30732] bmesh: loop select continues through hidden sections.
Campbell Barton [Fri, 30 Mar 2012 08:43:47 +0000 (08:43 +0000)]
partial fix for [#30732] bmesh: loop select continues through hidden sections.

loop cut and edge ring select still need to be fixed.

9 years agominor speedup converting a BMesh to a Mesh - avoid loop over all faces to count how...
Campbell Barton [Fri, 30 Mar 2012 06:45:13 +0000 (06:45 +0000)]
minor speedup converting a BMesh to a Mesh - avoid loop over all faces to count how many loops to use, since BMesh stores totloop.

also use camel case for UndoMesh (convention)

9 years agofix [#30643] Crasher on entering edit mode with VBOs enabled
Campbell Barton [Fri, 30 Mar 2012 06:11:59 +0000 (06:11 +0000)]
fix [#30643] Crasher on entering edit mode with VBOs enabled

9 years agoupdated add mesh template for bmesh. thanks to PKHG for initial conversion.
Campbell Barton [Fri, 30 Mar 2012 05:43:33 +0000 (05:43 +0000)]
updated add mesh template for bmesh. thanks to PKHG for initial conversion.

9 years agofix for finding the python exception line number when running a script in the text...
Campbell Barton [Fri, 30 Mar 2012 05:26:08 +0000 (05:26 +0000)]
fix for finding the python exception line number when running a script in the text editor.

- filename comparison was invalid
- was stopping on the first traceback, which would reference the caller but not the error line (when the error was in a function).

9 years agofix [#30729]
Campbell Barton [Fri, 30 Mar 2012 03:33:42 +0000 (03:33 +0000)]
fix [#30729]

custom property add/remove wasnt doing an undo push.

9 years agostyle cleanup: interface
Campbell Barton [Fri, 30 Mar 2012 01:51:25 +0000 (01:51 +0000)]
style cleanup: interface

9 years agofix for unhiding faces showing invalid normals.
Campbell Barton [Fri, 30 Mar 2012 01:11:11 +0000 (01:11 +0000)]
fix for unhiding faces showing invalid normals.

9 years agofix [#30725] BMesh - Select Linked ignores faces
Campbell Barton [Fri, 30 Mar 2012 00:58:29 +0000 (00:58 +0000)]
fix [#30725] BMesh - Select Linked ignores faces

9 years agofix [#30718] Selecting vertices, edges, faces and undoing - results in wrong header...
Campbell Barton [Fri, 30 Mar 2012 00:23:22 +0000 (00:23 +0000)]
fix [#30718] Selecting vertices, edges, faces and undoing - results in wrong header status info

converting mesh to bmesh resulted in incorrect stats.

9 years agosupport for opengl rendering in the sequencer (header icons as with 3D view).
Campbell Barton [Thu, 29 Mar 2012 23:33:50 +0000 (23:33 +0000)]
support for opengl rendering in the sequencer (header icons as with 3D view).

while opengl could be used for display you couldn't output it to a file.

extended the existing opengl render operator to optionally take input from the sequencer.

notes:
- doesn't redraw in the viewport yet (only output in terminal)
- doesn't do OSA

9 years agoSmall fix for r45256, AKEY (de)selection not working.
Nicholas Bishop [Thu, 29 Mar 2012 23:14:09 +0000 (23:14 +0000)]
Small fix for r45256, AKEY (de)selection not working.

Added call to BM_mesh_select_mode_flush on entering edit mode.

9 years agoSmall code cleanups related to arrays.
Nicholas Bishop [Thu, 29 Mar 2012 23:13:44 +0000 (23:13 +0000)]
Small code cleanups related to arrays.

* Added helpful comment on 'keepverts' slot of bmop finddoubles.
* Removed unused macro 'E' from MOD_array.

9 years agostyle cleanup: render
Campbell Barton [Thu, 29 Mar 2012 22:42:32 +0000 (22:42 +0000)]
style cleanup: render

9 years agostyle cleanup: minor change and remove redundant casts
Campbell Barton [Thu, 29 Mar 2012 22:35:12 +0000 (22:35 +0000)]
style cleanup: minor change and remove redundant casts

9 years agostyle cleanup: sequencer
Campbell Barton [Thu, 29 Mar 2012 22:26:11 +0000 (22:26 +0000)]
style cleanup: sequencer

9 years agoFix "First Last" merge option in array modifier (partial fix for bug 30195)
Nicholas Bishop [Thu, 29 Mar 2012 20:58:25 +0000 (20:58 +0000)]
Fix "First Last" merge option in array modifier (partial fix for bug 30195)

9 years agoAdd stub for ED_mesh_calc_tessface to get blenderplayer compiling again.
Antony Riakiotakis [Thu, 29 Mar 2012 17:17:39 +0000 (17:17 +0000)]
Add stub for ED_mesh_calc_tessface to get blenderplayer compiling again.

9 years agoFix #30717: Bmesh Branch manipulator bug (Maya Keymaps)
Sergey Sharybin [Thu, 29 Mar 2012 15:50:51 +0000 (15:50 +0000)]
Fix #30717: Bmesh Branch manipulator bug (Maya Keymaps)

Issue was caused by storing operator properties for VIEW3D_OT_enable_manipulator

9 years agoFix #30716: Clamp To Constraint Locks up Blender after a while.
Sergey Sharybin [Thu, 29 Mar 2012 15:41:58 +0000 (15:41 +0000)]
Fix #30716: Clamp To Constraint Locks up Blender after a while.

Issue was caused by object moved really far away (not just actually issue,
it's just about long mouse gesture and X-axis orientation which projects
position to quite large X-axis value) and for this location start offset
from curve length was calculating iteratively which takes plenty of time for
short curves.

Replace iterative search of offset with formula which seems to be working
in the same way and should be a bit more accurate.

9 years agoFix #30719: Align View to Selected has unexpected results on further view change
Sergey Sharybin [Thu, 29 Mar 2012 15:04:54 +0000 (15:04 +0000)]
Fix #30719: Align View to Selected has unexpected results on further view change

9 years agoadded Mesh.calc_tessface(), needed to update mesh tessface after bmesh edits.
Campbell Barton [Thu, 29 Mar 2012 13:44:30 +0000 (13:44 +0000)]
added Mesh.calc_tessface(), needed to update mesh tessface after bmesh edits.

also add py api BMDeformVert.clear()

9 years agofix [#30715] bmesh: select linked not ignoring hidden verts/edges/faces
Campbell Barton [Thu, 29 Mar 2012 13:09:07 +0000 (13:09 +0000)]
fix [#30715] bmesh: select linked not ignoring hidden verts/edges/faces

add optional flag to ignore hidden elements.
also remove loop mask flag - since it wasnt used and vert/edge/face is enough.

9 years agoMore array modifier fixes.
Nicholas Bishop [Thu, 29 Mar 2012 11:31:44 +0000 (11:31 +0000)]
More array modifier fixes.

* Skip calculation of merge indices if merging isn't enabled
* Clean up usage of BMesh operators to fix small memory leak
* Fix harmless BLI_assert in CustomData_bmesh_merge
* Another null-initialization fix in CustomData_bmesh_merge

9 years agoFix uninitialized variable in CustomData_bmesh_merge.
Nicholas Bishop [Thu, 29 Mar 2012 10:49:17 +0000 (10:49 +0000)]
Fix uninitialized variable in CustomData_bmesh_merge.

Caused a crash in array modifier with caps.

9 years agoconverting a mesh to an undo mesh now skips using bmesh operator.
Campbell Barton [Thu, 29 Mar 2012 03:06:42 +0000 (03:06 +0000)]
converting a mesh to an undo mesh now skips using bmesh operator.

9 years agoBGE: This fixes a problem where lamps in inactive layers were rendering shadows buffe...
Mitchell Stokes [Thu, 29 Mar 2012 01:56:08 +0000 (01:56 +0000)]
BGE: This fixes a problem where lamps in inactive layers were rendering shadows buffers that never got used, which was a huge performance sink.

9 years agoskip using bmesh operators for converting to/from undo meshes (gives some speedup)
Campbell Barton [Thu, 29 Mar 2012 01:41:56 +0000 (01:41 +0000)]
skip using bmesh operators for converting to/from undo meshes (gives some speedup)

9 years agoWindows Blenderplayer: The console now closes when the Blenderplayer launches (like...
Mitchell Stokes [Thu, 29 Mar 2012 01:40:19 +0000 (01:40 +0000)]
Windows Blenderplayer: The console now closes when the Blenderplayer launches (like it does with Blender). To get it back, use the -c flag, which is finally working as described: "-c: keep console window open"

9 years agofix [#30402] modules dir missing from sys.path
Campbell Barton [Wed, 28 Mar 2012 23:53:27 +0000 (23:53 +0000)]
fix [#30402] modules dir missing from sys.path

9 years agofix [#30705] Playing animation in reverse prevents further forward playback
Campbell Barton [Wed, 28 Mar 2012 22:43:26 +0000 (22:43 +0000)]
fix [#30705] Playing animation in reverse prevents further forward playback

9 years agofix invalid *= on an un-initialized value when adding primitives.
Campbell Barton [Wed, 28 Mar 2012 22:11:19 +0000 (22:11 +0000)]
fix invalid *= on an un-initialized value when adding primitives.

9 years agoPartial fix for array modifier vertex merge (bug 30195).
Nicholas Bishop [Wed, 28 Mar 2012 22:03:46 +0000 (22:03 +0000)]
Partial fix for array modifier vertex merge (bug 30195).

Two fixes:

* The find-doubles operator was overriding the "dirty" element
  indices, so vertices were not being mapped correctly.

* In some cases a vertex can be set to merge with a vertex that is
  also set to be merged, so added a loop to find the first unmerged
  vert in this case.

Not yet working is the "First Last" merge option.

Also made some cleanups and added comments in the array/remove doubles
code.

9 years agoThis does two things for cleanup builds made with SCons:
Mitchell Stokes [Wed, 28 Mar 2012 19:56:11 +0000 (19:56 +0000)]
This does two things for cleanup builds made with SCons:
  1) Removes unwanted folders from Python/lib instead of just emptying them out.
  2) Removes the test folder from Python/lib. This folder contains unit tests for Python (not the unittest module itself), and is about 10~12MB.

9 years agoFix #30702: game engine softbody weld threshold was exposed in UI, but actually
Brecht Van Lommel [Wed, 28 Mar 2012 12:18:25 +0000 (12:18 +0000)]
Fix #30702: game engine softbody weld threshold was exposed in UI, but actually
disabled in code because it doesn't work well, so hide the property from the UI.

9 years agoFix #30551: cycles passes combining did not always give identical result combined
Brecht Van Lommel [Wed, 28 Mar 2012 12:18:12 +0000 (12:18 +0000)]
Fix #30551: cycles passes combining did not always give identical result combined
with antialiasing/defocus, now divide out color at the very end instead of for each
sample.

9 years agostyle cleanup
Campbell Barton [Wed, 28 Mar 2012 11:53:18 +0000 (11:53 +0000)]
style cleanup

9 years agoSmall cleanup for r45238, remove empty/unused function.
Nicholas Bishop [Wed, 28 Mar 2012 11:48:16 +0000 (11:48 +0000)]
Small cleanup for r45238, remove empty/unused function.

9 years agoCycles: shadow pass support. Note that this only takes into account lamps,
Brecht Van Lommel [Wed, 28 Mar 2012 10:39:21 +0000 (10:39 +0000)]
Cycles: shadow pass support. Note that this only takes into account lamps,
emitting objects or world lighting do not contribute to the shadow pass.

Consider this more as a pass useful for some compositing tricks, unlike
other lighting passes this pass can't be used to exactly reconstruct the
combined pass.

9 years agoexpose image render_slot so keybindings can be configured to change
Campbell Barton [Wed, 28 Mar 2012 09:10:19 +0000 (09:10 +0000)]
expose image render_slot so keybindings can be configured to change

9 years agoCycles: add alpha output to image node.
Brecht Van Lommel [Wed, 28 Mar 2012 09:07:43 +0000 (09:07 +0000)]
Cycles: add alpha output to image node.

9 years agoCycles: add rendered draw mode option in 3d view header to show the active
Brecht Van Lommel [Wed, 28 Mar 2012 09:07:35 +0000 (09:07 +0000)]
Cycles: add rendered draw mode option in 3d view header to show the active
render layer rather than the viewport layers.

9 years agoCycles: viewport rendered draw mode now shows background images, also changed the
Brecht Van Lommel [Wed, 28 Mar 2012 09:07:10 +0000 (09:07 +0000)]
Cycles: viewport rendered draw mode now shows background images, also changed the
image editor checkerboard pattern to be the same as cycles viewport.

9 years agobmesh: be more strict with operator string formatting, no tabs and only accept slot...
Campbell Barton [Wed, 28 Mar 2012 08:42:19 +0000 (08:42 +0000)]
bmesh: be more strict with operator string formatting, no tabs and only accept slot=%x style.

9 years agoprint error if rip does nothing (rather then grabbing the unripped verts as it did...
Campbell Barton [Wed, 28 Mar 2012 08:00:58 +0000 (08:00 +0000)]
print error if rip does nothing (rather then grabbing the unripped verts as it did before)

9 years agoFix for the node tree nodes.new API function, this wasn't setting the scene and main...
Lukas Toenne [Wed, 28 Mar 2012 07:48:08 +0000 (07:48 +0000)]
Fix for the node tree nodes.new API function, this wasn't setting the scene and main context pointers in the node template, used by file output node. Also the file output node itself now works in case of scene==NULL (might happen in some contexts).

9 years agoremove dissolve keybinding, conflicts with draw, add back to delete menu.
Campbell Barton [Wed, 28 Mar 2012 07:44:20 +0000 (07:44 +0000)]
remove dissolve keybinding, conflicts with draw, add back to delete menu.

dissolve is now 'X -> D'

9 years agofix [#30699] blender crashes when dissolving faces
Campbell Barton [Wed, 28 Mar 2012 06:44:19 +0000 (06:44 +0000)]
fix [#30699] blender crashes when dissolving faces

thanks to Francisco De La Cruz for investigating and providing fix.

9 years agocode cleanup: Ctrl+Click extrude - replace inline axis/angle to matrix conversion...
Campbell Barton [Wed, 28 Mar 2012 06:34:18 +0000 (06:34 +0000)]
code cleanup: Ctrl+Click extrude - replace inline axis/angle to matrix conversion with a call to axis_angle_to_mat3()

9 years agofix for vertex rip
Campbell Barton [Wed, 28 Mar 2012 05:44:38 +0000 (05:44 +0000)]
fix for vertex rip

wire edges connected to the vertex would confuse vertex rip.

- was only checking verts first edge had a face,  this is incorrect since other vert-edges may have a face.
- wasn't checking of edges connected to the vertex were hidden.

9 years agofix [#30701] bmesh: segfault when ripping partially connected vertices
Campbell Barton [Wed, 28 Mar 2012 05:20:48 +0000 (05:20 +0000)]
fix [#30701] bmesh: segfault when ripping partially connected vertices

9 years agostyle cleanup: for creator.c & more useful assert message (file:line)
Campbell Barton [Wed, 28 Mar 2012 05:09:50 +0000 (05:09 +0000)]
style cleanup: for creator.c & more useful assert message (file:line)

9 years agostyle cleanup
Campbell Barton [Wed, 28 Mar 2012 05:03:24 +0000 (05:03 +0000)]
style cleanup

9 years agostyle cleanup: mainly whitespace around operators and indentation - paint/sculpt...
Campbell Barton [Wed, 28 Mar 2012 03:47:33 +0000 (03:47 +0000)]
style cleanup: mainly whitespace around operators and indentation - paint/sculpt tools

9 years agoown error r45225
Campbell Barton [Wed, 28 Mar 2012 03:17:22 +0000 (03:17 +0000)]
own error r45225
- move defines to the top of the func.
- rename T -> EPS
- undefine at the end.

9 years agocode cleanup: (dont include ';' in defines), last commit also missed changes to paint...
Campbell Barton [Wed, 28 Mar 2012 01:06:43 +0000 (01:06 +0000)]
code cleanup: (dont include ';' in defines), last commit also missed changes to paint_image.c

9 years agofix [#30666] Texturepaint "Soften" brush gets stuck
Campbell Barton [Wed, 28 Mar 2012 00:42:38 +0000 (00:42 +0000)]
fix [#30666] Texturepaint "Soften" brush gets stuck

use derived mesh tessfaces since the mesh doesnt ensure this, also means non-project-painting in the viewport works with modifiers now.

9 years agofix [#30685] Solidify tool behaves like Shrink/Fatten (editmesh functionality stuff)
Campbell Barton [Tue, 27 Mar 2012 23:23:47 +0000 (23:23 +0000)]
fix [#30685] Solidify tool behaves like Shrink/Fatten (editmesh functionality stuff)

solidify had a limit imposed on how far vertices could move which didnt work well, removed (the modifier doesnt do this).

also missed freeing 2 arrays.

9 years agoFix [#30700] Blend from Shape gives only selection for basis shapekey
Bastien Montagne [Tue, 27 Mar 2012 20:45:06 +0000 (20:45 +0000)]
Fix [#30700] Blend from Shape gives only selection for basis shapekey

RNA_enum_item_add already sets totitem, so it was increased twice…

9 years agoFix #30658: add new uv layer in object mode did not copy coordinates from
Brecht Van Lommel [Tue, 27 Mar 2012 18:35:49 +0000 (18:35 +0000)]
Fix #30658: add new uv layer in object mode did not copy coordinates from
existing layer as it does in edit mode.

9 years agoFix tweak for #30638: use same BMesh Face area computation functions as Mesh,
Brecht Van Lommel [Tue, 27 Mar 2012 18:26:41 +0000 (18:26 +0000)]
Fix tweak for #30638: use same BMesh Face area computation functions as Mesh,
it's a bit fuzzy how to compute area for ngons, but at least should be consistent.

9 years agoFix related to #30674: remove unnecessary global undo push during image paint,
Brecht Van Lommel [Tue, 27 Mar 2012 17:58:50 +0000 (17:58 +0000)]
Fix related to #30674: remove unnecessary global undo push during image paint,
not needed since it already has local image undo stack.

9 years agoPatch [#30683] Editmesh_tools without descriptions by Harley Acheson (harley)
Thomas Dinges [Tue, 27 Mar 2012 17:53:31 +0000 (17:53 +0000)]
Patch [#30683] Editmesh_tools without descriptions by Harley Acheson (harley)

* Some Edit Mesh operators were missing the description after b-mesh merge.

9 years agoFix related to #30674: 2D image painting would do unnecessary full GL texture
Brecht Van Lommel [Tue, 27 Mar 2012 17:19:13 +0000 (17:19 +0000)]
Fix related to #30674: 2D image painting would do unnecessary full GL texture
delete at the end of the stroke, even when doing partial updates.

9 years agoBMesh TODOs: use loops/polys instead of tessfaces.
Bastien Montagne [Tue, 27 Mar 2012 13:52:30 +0000 (13:52 +0000)]
BMesh TODOs: use loops/polys instead of tessfaces.

9 years agoFix bug 30697, strange shading on array modifier with offset object.
Nicholas Bishop [Tue, 27 Mar 2012 13:08:40 +0000 (13:08 +0000)]
Fix bug 30697, strange shading on array modifier with offset object.

* An offset object can rotate output, so need to update normals to
  reflect that. Fix by adding a normals recalc, but only if there's an
  offset object.

* Added BMESH_TODO comment to check whether there are other cases were
  normals need to be updated.

9 years agoPartial fix for bug 30695, "Array broke crease, weird visibility and slowdown"
Nicholas Bishop [Tue, 27 Mar 2012 12:34:00 +0000 (12:34 +0000)]
Partial fix for bug 30695, "Array broke crease, weird visibility and slowdown"

* Array modifier creates BMesh from DM; add missing CD_CREASE layer
  for edge creases.

* With a modifier stack like mirror+subsurf+array, face normals were
  wrong. Fix by removing CD_NORMAL layer from CCGDM output. Previously
  the elements in this layer were simply copied, so they did not
  reflect subdivision correctly.

* Minor style fixes in bmo_dupe.c.

Issues not yet addressed:

* Subsurf's optimal draw setting for hiding subdivision edges is not
  respected by the array output.

* Slowdown issue; array modifier is much slower than in 2.62.

9 years agoFix more truncated comments.
Nicholas Bishop [Tue, 27 Mar 2012 11:03:10 +0000 (11:03 +0000)]
Fix more truncated comments.

9 years agoSpelling fix, sentine -> sentinel.
Nicholas Bishop [Tue, 27 Mar 2012 10:55:20 +0000 (10:55 +0000)]
Spelling fix, sentine -> sentinel.

'sentine' apparently means "A place for dregs and dirt; a sink; a sewer" :)

9 years agobmesh py api:
Campbell Barton [Tue, 27 Mar 2012 10:30:10 +0000 (10:30 +0000)]
bmesh py api:
  added access to deform weights, access to weights acts like a python dict so you can do...

  print(group in dvert)
  dvert[group] = 0.5
  print(dvert[group])
  del dvert[group]
  print(dvert.items())

9 years agoFix bug 30696, circular mesh objects had wrong orientation.
Nicholas Bishop [Tue, 27 Mar 2012 10:28:06 +0000 (10:28 +0000)]
Fix bug 30696, circular mesh objects had wrong orientation.

Behavior now matches 2.62, circle, cone, and cylinder get first vertex
at 0 degrees.

Also fixed range for vertex property of add-cone and add-cylinder
operators, changed minumum from two to three.

9 years agoFix bug 29123, subdivide smooth distorts shape with numcuts > 1.
Nicholas Bishop [Tue, 27 Mar 2012 09:24:00 +0000 (09:24 +0000)]
Fix bug 29123, subdivide smooth distorts shape with numcuts > 1.

Three fixes:

* When smoothing a coord, the original position should be based off
  the unsmoothed subdivision (i.e. the vertex coord rather than the
  smoothed position in the shapekey)

* The normal of new vertices created by edge split must be updated
  (used the same interpolation as pre-bmesh here)

* The vertices created inside the subdivided face should use the
  subdivided coords from edges, so copy the shapekey coords back to
  vertex coords after subdividing edges

9 years agoPort Setup Tracking scene to bmesh api
Sergey Sharybin [Tue, 27 Mar 2012 09:10:05 +0000 (09:10 +0000)]
Port Setup Tracking scene to bmesh api

9 years agoMakeDupliFaces was using mesh.faces which was renamed to mesh.tessfaces.
Sergey Sharybin [Tue, 27 Mar 2012 08:59:36 +0000 (08:59 +0000)]
MakeDupliFaces was using mesh.faces which was renamed to mesh.tessfaces.
TODO about porting it to polys is still relevant.

9 years agoreload_sequence_new_file now works with movie clip strips as well
Sergey Sharybin [Tue, 27 Mar 2012 08:54:37 +0000 (08:54 +0000)]
reload_sequence_new_file now works with movie clip strips as well

9 years agominor code/style cleanup
Campbell Barton [Tue, 27 Mar 2012 05:03:23 +0000 (05:03 +0000)]
minor code/style cleanup

9 years agofix for undoMesh_to_editbtMesh not setting BMEditMesh.ob field.
Campbell Barton [Tue, 27 Mar 2012 04:54:52 +0000 (04:54 +0000)]
fix for undoMesh_to_editbtMesh not setting BMEditMesh.ob field.

error found by XercesBlue on IRC

9 years agostyle/name cleanup: have EDBM_* functions match our style guide and also match BM_...
Campbell Barton [Tue, 27 Mar 2012 04:46:52 +0000 (04:46 +0000)]
style/name cleanup: have EDBM_* functions match our style guide and also match BM_ function naming conventions

9 years agofix error in last commit
Campbell Barton [Tue, 27 Mar 2012 01:52:49 +0000 (01:52 +0000)]
fix error in last commit

9 years agobmesh todo, unlikly but possible - entering editmode with faces and no polys.
Campbell Barton [Tue, 27 Mar 2012 01:28:25 +0000 (01:28 +0000)]
bmesh todo, unlikly but possible - entering editmode with faces and no polys.

rather then printing a warning and failing - convert them to polys.

9 years agostyle cleanup: wm, mosyly adding space around ops
Campbell Barton [Tue, 27 Mar 2012 01:24:16 +0000 (01:24 +0000)]
style cleanup: wm, mosyly adding space around ops

9 years agouse cmake WITH_MOD_ * to exclude include paths which are not used.
Campbell Barton [Tue, 27 Mar 2012 00:17:57 +0000 (00:17 +0000)]
use cmake WITH_MOD_ * to exclude include paths which are not used.

9 years agofix [#30651] bpy.ops.object.mode_set(...) editmode removes faces.
Campbell Barton [Tue, 27 Mar 2012 00:01:35 +0000 (00:01 +0000)]
fix [#30651] bpy.ops.object.mode_set(...) editmode removes faces.

problem was that BMesh had tessellation call when undo pushes were called.

if python called an operator with no undo push, tessfaces would not be created.

fix this by making it the responsibility of each editmesh operator to re-tessellate, as it is with notifiers and depsgraph.
added EDBM_update_generic() function to add notifier, tag for depsgraph update and optionally re-tessellate.

9 years agoReturn back sfra property to Sequence structure to prevent data loose
Sergey Sharybin [Mon, 26 Mar 2012 22:36:32 +0000 (22:36 +0000)]
Return back sfra property to Sequence structure to prevent data loose
until things discussing in #30663 will be resolved.

9 years agoClean-up logic of behavior of refresh/reload operators in sequencer
Sergey Sharybin [Mon, 26 Mar 2012 22:26:30 +0000 (22:26 +0000)]
Clean-up logic of behavior of refresh/reload operators in sequencer

After discussion with Campbell we found much nicer solution which
keeps operation with data much more clear:

- Refresh Sequencer is totally harmless, do not touch actual data
  and just removes everything from cache
- Reload Strip will reload data and adjust it's length for all
  selected strips without affecting on length of strip itself
- Reload Strip and Adjust length will do the same but will also
  adjust length of strip itself.

9 years agoquiet some warnings for gcc 4.7
Campbell Barton [Mon, 26 Mar 2012 20:49:33 +0000 (20:49 +0000)]
quiet some warnings for gcc 4.7

9 years agostyle cleanup: py api
Campbell Barton [Mon, 26 Mar 2012 20:41:54 +0000 (20:41 +0000)]
style cleanup: py api

9 years agoFix for position of array-modifier end cap when not using a fixed count.
Nicholas Bishop [Mon, 26 Mar 2012 19:50:45 +0000 (19:50 +0000)]
Fix for position of array-modifier end cap when not using a fixed count.

Moved calculation of final offset so that correct count value has been set.

9 years agoFix run-time warning of freeing null pointer in array modifier.
Nicholas Bishop [Mon, 26 Mar 2012 19:44:25 +0000 (19:44 +0000)]
Fix run-time warning of freeing null pointer in array modifier.

9 years agoRenaming pt_BR to pt, as a recent reform [1] made most country speaking portugese...
Bastien Montagne [Mon, 26 Mar 2012 17:24:54 +0000 (17:24 +0000)]
Renaming pt_BR to pt, as a recent reform [1] made most country speaking portugese use a same, common version of it, which we want to use here.

[1] http://www.reformaortografica.com/

9 years agoFix for truncation of 64-bit CustomDataMasks.
Nicholas Bishop [Mon, 26 Mar 2012 16:25:21 +0000 (16:25 +0000)]
Fix for truncation of 64-bit CustomDataMasks.

Can't use GET_INT_FROM_POINTER anymore with CD masks, as this
truncates to 32-bit.

Bug: http://projects.blender.org/tracker/index.php?func=detail&aid=30680&group_id=9&atid=498
CR: http://codereview.appspot.com/5905059/

9 years agoStyle cleanup of movie cache module
Sergey Sharybin [Mon, 26 Mar 2012 16:04:10 +0000 (16:04 +0000)]
Style cleanup of movie cache module

9 years agoFix crash of Refresh Sequencer when some Movie / MovieClip strips doesn't have animat...
Sergey Sharybin [Mon, 26 Mar 2012 15:57:00 +0000 (15:57 +0000)]
Fix crash of Refresh Sequencer when some Movie / MovieClip strips doesn't have animation opened

9 years agoFix #30675: Default .blend should have clay strips brush
Sergey Sharybin [Mon, 26 Mar 2012 15:29:27 +0000 (15:29 +0000)]
Fix #30675: Default .blend should have clay strips brush

9 years agoDefault settings for new movie clip tracking now is the same as Default preset
Sergey Sharybin [Mon, 26 Mar 2012 14:30:30 +0000 (14:30 +0000)]
Default settings for new movie clip tracking now is the same as Default preset