Commit Graph

30847 Commits

Author SHA1 Message Date
Nicholas Bishop
6420dc23fd 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
2012-03-27 09:24:00 +00:00
Sergey Sharybin
d334f04ee6 reload_sequence_new_file now works with movie clip strips as well 2012-03-27 08:54:37 +00:00
Campbell Barton
05abdf344b minor code/style cleanup 2012-03-27 05:03:23 +00:00
Campbell Barton
fc7624a6be fix for undoMesh_to_editbtMesh not setting BMEditMesh.ob field.
error found by XercesBlue on IRC
2012-03-27 04:54:52 +00:00
Campbell Barton
09f29c0b70 style/name cleanup: have EDBM_* functions match our style guide and also match BM_ function naming conventions 2012-03-27 04:46:52 +00:00
Campbell Barton
ea270a6903 fix error in last commit 2012-03-27 01:52:49 +00:00
Campbell Barton
f83a93e454 bmesh todo, unlikly but possible - entering editmode with faces and no polys.
rather then printing a warning and failing - convert them to polys.
2012-03-27 01:28:25 +00:00
Campbell Barton
ae654301b0 style cleanup: wm, mosyly adding space around ops 2012-03-27 01:24:16 +00:00
Campbell Barton
126c9d4caa use cmake WITH_MOD_ * to exclude include paths which are not used. 2012-03-27 00:17:57 +00:00
Campbell Barton
ca05219f3e 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.
2012-03-27 00:01:35 +00:00
Sergey Sharybin
4d802ff682 Return back sfra property to Sequence structure to prevent data loose
until things discussing in #30663 will be resolved.
2012-03-26 22:36:32 +00:00
Sergey Sharybin
40c667e75e 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.
2012-03-26 22:26:30 +00:00
Campbell Barton
83e83e5eff quiet some warnings for gcc 4.7 2012-03-26 20:49:33 +00:00
Campbell Barton
abf551b1a5 style cleanup: py api 2012-03-26 20:41:54 +00:00
Nicholas Bishop
57f7aca8ee 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.
2012-03-26 19:50:45 +00:00
Nicholas Bishop
f02d679183 Fix run-time warning of freeing null pointer in array modifier. 2012-03-26 19:44:25 +00:00
Bastien Montagne
9ffdad9f9c 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/
2012-03-26 17:24:54 +00:00
Nicholas Bishop
47cd3d4b8e 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/
2012-03-26 16:25:21 +00:00
Sergey Sharybin
03336c0ba7 Style cleanup of movie cache module 2012-03-26 16:04:10 +00:00
Sergey Sharybin
adbe628a1b Fix crash of Refresh Sequencer when some Movie / MovieClip strips doesn't have animation opened 2012-03-26 15:57:00 +00:00
Sergey Sharybin
3d5111a5ed Fix #30675: Default .blend should have clay strips brush 2012-03-26 15:29:27 +00:00
Sergey Sharybin
52b26c4e4e Default settings for new movie clip tracking now is the same as Default preset 2012-03-26 14:30:30 +00:00
Bastien Montagne
3a33110732 Fix for segfault when building proxies in Sequencer. 2012-03-26 14:10:15 +00:00
Sergey Sharybin
cc1ebaf496 Request from Mango team which will most probably expected by everyone:
Refresh Sequencer button will now update lengths of strips as well.
2012-03-26 13:48:45 +00:00
Bastien Montagne
0a4d483559 Fix for own error in sequencer's Select menu (from r40658, makes me wonder if anyone uses that feature except me...), and update to Select Grouped op (taking into account new MovieClip strip type). 2012-03-26 13:45:06 +00:00
Sergey Sharybin
69c9451c3e - MovieClip strips now have got valid color for older saved files
- Update Strip Length will now properly update lenght of movie clip
  strips created from movies before lenght was added there.
2012-03-26 13:36:22 +00:00
Sergey Sharybin
dbfe971c06 Fix for crash when adding image sequence movie clip into a sequencer 2012-03-26 13:30:53 +00:00
Brecht Van Lommel
d27a1a9acd Fix #30676: UV unwrap did not create UV map with proper default coordinates. 2012-03-26 13:21:13 +00:00
Brecht Van Lommel
862a1a6afa Fix blenderplayer build, adding stub. 2012-03-26 12:45:28 +00:00
Brecht Van Lommel
bbc3d820f4 Cycles: add ColorRamp node. 2012-03-26 12:45:14 +00:00
Sergey Sharybin
5e764bf848 Fix #30647: Error in wire drawing of subsurf
Patch by Nicholas Bishop, thanks!
2012-03-26 12:20:46 +00:00
Campbell Barton
2743f2bb3f fix [#30257] bmesh: Rip "V" don't work on end vertex
added option to edgesplit bmesh operator to take tagged vertices as well so an edge at a boundary can split without splitting off the boundary vertex.

the behavior/speed of the edge split modifier and tool remainss the same, this is only used for rip.
2012-03-26 12:02:41 +00:00
Sergey Sharybin
261e92f864 Fix #30430: Can only alt+scroll image buffer slot once
Issue was caused by mapping old buttons to new buttons. Render slot button in header
holds RenerResult for particular slot, but in N-panel it holds RenderResult from RenderEngine.
So what was happening is: switching render slot to empty slot makes slot button in header
contain NULL as button function's argument, but old button holds RenderResult for rendered
image, so this two buttons aren't equal and so button isn't getting activated and no scrolling
happens.
Making slot button hold RenderResult directly from RenderEngine (as it's happening with
buttons in N-panel) makes old->new buttons mapping work correct and it's possible
to alt-scroll smoothly
2012-03-26 11:44:03 +00:00
Sergey Sharybin
8439649464 Fix #30671: Reset to default values bug 2012-03-26 10:33:37 +00:00
Campbell Barton
7d9f0bfe76 fix [#30598] Bad 3D view display & render with smooth mesh
Sergey's suggestion - just call calc normals fixes.
2012-03-26 09:38:38 +00:00
Sergey Sharybin
3fab018da4 Fix for object solver possible pointing to a freed memory when removing
movie clip data block from python/
2012-03-26 09:36:19 +00:00
Campbell Barton
4a1fdd80f9 style cleanup: use NULL rather than 0 for raytrace code. 2012-03-26 08:58:17 +00:00
Campbell Barton
ce4eb57301 fix [#30653] Wrong image at UV/Image Editor window
render results would be displayed on loading new files if the scene names matches, now free render-results so as not to display stale data - also saves some memory.
2012-03-26 08:10:12 +00:00
Campbell Barton
4ade85612c fix for possible crash - freed scene was being used for render result lookup when 'Load UI' was disabled. 2012-03-26 08:06:13 +00:00
Campbell Barton
7e38b49f26 fix for possible crash using freed ObCenter pointer when loaing a blend file without loading the UI. 2012-03-26 07:28:31 +00:00
Campbell Barton
11d12d945e style cleanup: python api 2012-03-26 06:55:09 +00:00
Bastien Montagne
7c8c1a0718 Minor fixes to recent new UI messages. 2012-03-26 06:20:59 +00:00
Campbell Barton
5c209c76a1 fix [#30658] existing uv mesh coordinates not copied to new created uv map 2012-03-26 05:28:00 +00:00
Campbell Barton
c9c66720c8 disallow adding tessfaces to a mesh with polygons (only allowed case is creating a new mesh with tessfaces and later converting to polygons, which wont work if polygons exist) 2012-03-26 04:32:04 +00:00
Campbell Barton
452f7c3868 setting the active texture layer from python would get the UV layer out of sync. (entering editmode would show the wrong UV layer) 2012-03-26 04:23:18 +00:00
Campbell Barton
48f0444760 style cleanup: editors/mesh - mostly whitespace around operators 2012-03-26 02:56:48 +00:00
Campbell Barton
44010fb659 fix [#30657] New UV layers created with Mesh.uv_textures.new reset previous ones.
adding UV's from python was resetting the active UV layer but not setting the new layer to active, resetting existing UV's.
2012-03-26 02:39:05 +00:00
Campbell Barton
94b8b8913e rename lattice influence to strength from r45144 (other deform modifiers call it strength too) 2012-03-26 00:42:21 +00:00
Campbell Barton
09144c3756 style cleanup: mostly whitespace around operators 2012-03-25 23:54:33 +00:00
Sergey Sharybin
1ce2c73816 Code style cleaup for motion-tracking modules.
Should be no functional changes.
2012-03-25 23:19:21 +00:00