Commit Graph

31506 Commits

Author SHA1 Message Date
Campbell Barton
3fdf33f7d9 fix for error copying face normals from poly normals in mesh_recalcTesselation() 2012-01-19 21:58:20 +00:00
Campbell Barton
e6b8469316 fix in recent commit with face normal calc optimization 2012-01-19 20:52:51 +00:00
Campbell Barton
1f84876e89 ensure defoem DM has tessface data for the few places that need it.
also add a workaround for CDDM_recalc_tesselation_ex() which would add a CD_NORMAL to dm->fdata and then overwrite immediate
2012-01-19 19:23:25 +00:00
Bastien Montagne
a31d1132e8 Minor code enhancement (replace for loops with while's, and avoid multiple checks to get good face vertex index). No functional changes. 2012-01-19 19:09:59 +00:00
Campbell Barton
7c82dbe68b minor optimizations for bmesh_update_face_normal(), which is called while transforming. 2012-01-19 18:35:08 +00:00
Campbell Barton
bc745a32d3 argument to mesh_recalcTesselation to skip copying normals from polygons. 2012-01-19 17:51:52 +00:00
Campbell Barton
330da356da svn merge ^/trunk/blender -r43524:43530 2012-01-19 16:30:56 +00:00
Brecht Van Lommel
1d46bbef7e Fix issue in recent color commits, was still doing a multiplication by 255 too
many, also don't check uchar range after casting to int, this can still cause
overflow with large float values.
2012-01-19 16:22:22 +00:00
Campbell Barton
167999304e simplify clipping loop 2012-01-19 16:12:40 +00:00
Campbell Barton
c0db6fe04d style edits - < 120 line width 2012-01-19 16:04:44 +00:00
Campbell Barton
f340e0c449 size for static string was too small, we should really have dynamic sized strings to rna functions. 2012-01-19 15:11:22 +00:00
Campbell Barton
7b2101ace9 svn merge ^/trunk/blender -r43482:43524 2012-01-19 11:31:31 +00:00
Sergey Sharybin
c82b428b95 yRemove missed/unused "tweak" property from keymap for outliner's border select 2012-01-19 11:27:00 +00:00
Miika Hamalainen
25a5915650 Dynamic Paint:
* Added "Project" option also for "Volume + Proximity" brush type.
2012-01-19 11:13:41 +00:00
Campbell Barton
a87c5eb52c use color conversions functions in more places.
also add rgba_float_to_uchar, rgba_uchar_to_float
2012-01-19 10:04:51 +00:00
Daniel Genrich
47514a0d71 Baked edit: Make particle edit mode more usable for Softbodies and Cloth (jahka gave "OK") 2012-01-19 09:58:25 +00:00
Campbell Barton
879c13bbfc rename rgb_float_to_byte, rgb_byte_to_float to rgb_float_to_uchar, rgb_uchar_to_float and swap args (math functions mostly have dest arg first like strcpy). 2012-01-19 09:09:00 +00:00
Campbell Barton
4786541285 add utility functions linearrgb_to_srgb_uchar4,
linearrgb_to_srgb_uchar3, was being done inline.
2012-01-19 08:22:23 +00:00
Nicholas Bishop
65fca39f77 Fix for building in release mode with scons.
Change given thumbs up from JesterKing.
2012-01-19 07:12:30 +00:00
Nicholas Bishop
a2f1cb40b0 Remove a couple more unneeded variables from paint cursor drawing. 2012-01-19 04:13:58 +00:00
Nicholas Bishop
6947db25a8 Fix a minor RNA warning.
function warning.
2012-01-19 04:04:05 +00:00
Nicholas Bishop
6afac2d345 Couple minor fixes for DM_debug_print().
Fix a gcc warning by not using the DM_debug_info string as the format
string, also free the string after printing.
2012-01-19 04:00:27 +00:00
Nicholas Bishop
d526fc3e20 Remove some unused alpha code in paint_cursor. 2012-01-19 04:00:03 +00:00
Nicholas Bishop
2953542c6e Remove stroke parameter from PaintStroke's StrokeGetLocation callback.
Only affected sculpt.
2012-01-19 03:13:01 +00:00
Nicholas Bishop
abf7b4d84a Move paint's WM paint cursor code into a new file.
The paint cursor code is fairly muddled still and needs futher cleanup
(commented in the new file.) Over half the paint_stroke code was just
called from the cursor draw function.

There should be no functional changes from this.
2012-01-19 02:06:09 +00:00
Campbell Barton
b748d4f0cf debug function DM_debug_info / DM_debug_print, with access from python
through Object.dm_info('SOURCE/DEFORM/FINAL')

this is to help tracking down issues with modifiers where loosing data
layers between modifiers can cause bugs, also to helo with comparing
bmesh/trunk's modifier stack.
2012-01-19 00:18:25 +00:00
Dalai Felinto
c69abe0965 patch [#29679] Expose connected logic bricks from python
it exposes sensor.controllers and controller.actuators
this is how the data is exposed in blender.

to have controller.sensors or actuator.controllers is not that straightforward
2012-01-18 22:42:57 +00:00
Brecht Van Lommel
7162ca5be7 Fix #29922: NaN pixels due to bump map in degenerate case. 2012-01-18 22:36:19 +00:00
Brecht Van Lommel
42fcd2919a Code cleanup: remove some unused code. 2012-01-18 22:36:16 +00:00
Campbell Barton
831b27791d patch [#29924] Border select tool implementation for the outliner
from Perry Parks (scuey), with edits.

- select row rather than icons.
- adjust outliner selection rather than object selection.
2012-01-18 21:12:51 +00:00
Campbell Barton
57ad3b85d8 fix [#27589] Random crash with python UI
This script was defining an operator within the panels draw function, while its possible to support this its really asking for trouble.

the fix is to raise an error when this happens.

also fix crash passing non classes to register_class/unregister_class
2012-01-18 19:50:44 +00:00
Sergey Sharybin
de8612ec62 Merging r43130 through r43500 from trunk into soc-2011-tomato 2012-01-18 17:25:05 +00:00
Sergey Sharybin
16ffa8e8f4 Curve points of tracking curves now can be grabbed to smooth spikes
Curve points of tracks curves now can be selected for X and Y channels
separately and can be moved along Y axis of curve viewer, points currently
can't change frame they belong to. This allows to smooth spikes caused by
unwanted marker jump.

Also fixed some mistakes in cancel transform in cases when locked tracks
were being trying to be moved; fixed incorrect calculation of marker speed
for curve drawing.
2012-01-18 16:45:02 +00:00
Campbell Barton
787ea5feb4 replace CDDM_calc_normals_mapping with CDDM_calc_normals(), this version of the function wont create tessfaces (and should speedup the modifier stack in some cases). 2012-01-18 15:47:56 +00:00
Campbell Barton
5eb569b69a dissable editmode tessface creation in 'get_dm' looked over uses and all that use editmode data are deform modifiers. 2012-01-18 15:33:51 +00:00
Campbell Barton
ad3e9900d6 call CDDM_from_BMEditMesh without creating tessface data for modifiers.
- in the case of deform modifiers this is very safe (assuming the mods themselves dont need tessface data), since the DM is freed right after, so this is an easy speedup.

- in the case of bevel and split edge modifiers this should still work out fine since mods that need tessface data will generate it.
2012-01-18 15:29:25 +00:00
Campbell Barton
9d782c8a1a argument for CDDM_from_BMEditMesh() so creating tessface data is optional, no functional changes since all callers use this so far. 2012-01-18 15:09:27 +00:00
Campbell Barton
939c4171c4 fix for editmode bmesh bug - found by testing script.
incorrect flag handling in CDDM_from_BMEditMesh() broke editmode deform verts (they would never be copied), issue was exposed when re-aligning layer values with trunk.
2012-01-18 14:52:47 +00:00
Campbell Barton
fb07ed7cfe fixed [#29907] Uncoherent behaviour of Delete Edge Loop 2012-01-18 12:31:41 +00:00
Sergey Sharybin
6d0f27b727 Fix #29918: Set Scale does not work the second time
Issue was caused by recently added operator presets stuff.
2012-01-18 11:41:35 +00:00
Campbell Barton
9ba8f57d58 edit to r43487
- make red outline more obvious (was hard to see when the camera was selected)
- remove text, red-alert text IMHO should only be used when something is wrong (example - its used when FPS cant keep up), but this is just information.
  realize out UI isnt dealing well with added view3d options but dont think its good to solve by displaying options as text overlay.
  red outline for the camera is just a hint which users notice when enabling the camera, think its acceptable.
2012-01-18 11:10:02 +00:00
Michael Fox
dcceda33a6 small usability edit, now there is some feedback on when the camera is locked to view.
A warnign will now appear in the top left corner and the camera outline becomes red, this warning only appears in camera view
2012-01-18 10:41:38 +00:00
Campbell Barton
a58ee6a6d8 fix errors in bmesh vertex paint
- was swapping matrix incorrectly, would fail when the object had any transform
- wasn't calling mesh_update_customdata_pointers() when adding MCol's in some cases
- was calling do_shared_vertexcol() twice when it didnt need to (blur painting only)
2012-01-18 08:43:27 +00:00
Campbell Barton
b281b5278f svn merge ^/trunk/blender -r43472:43482 2012-01-18 07:04:17 +00:00
Antony Riakiotakis
b4df2658de remove ARB_texture_gather from bicubic bump map dependencies. It will be needed when/if monochrome images are supported 2012-01-18 00:03:09 +00:00
Campbell Barton
0f28c1c27a svn merge ^/trunk/blender -r43461:43472 2012-01-17 21:08:25 +00:00
Sv. Lockal
cd476ee531 fix [#29914] paste text into blender causes crash 2012-01-17 19:03:18 +00:00
Campbell Barton
9be40c026d missing header in previous commit 2012-01-17 18:11:17 +00:00
Campbell Barton
2019f636b0 misc small changes and bmesh support for testing script 2012-01-17 18:01:16 +00:00
Sergey Sharybin
c64ab6c2bf Whitespace tabs vs. spaces consistency changes 2012-01-17 17:26:58 +00:00