Commit Graph

220 Commits

Author SHA1 Message Date
Joseph Eagar
bb7339a7ae merge with trunk at r31523 2010-09-04 05:31:25 +00:00
Benoit Bolsee
ee78298dd5 Update MSVC project files 2010-08-17 20:53:07 +00:00
Benoit Bolsee
247a406027 Update MSVC project files 2010-08-15 21:39:48 +00:00
Joseph Eagar
c11c196efa part 1 of merge from trunk at r30358; it compiles, but doesn't link quite yet :) 2010-07-19 04:44:37 +00:00
Benoit Bolsee
f36ab733bf Update MSVC9 project file 2010-07-15 20:16:17 +00:00
Benoit Bolsee
ac981c08af Update MSVC project files 2010-07-12 11:37:15 +00:00
Benoit Bolsee
3332b2b29e Update MSCV9 project files 2010-05-24 21:10:58 +00:00
Andrea Weikert
9aa39368cc == MSVC projectfiles ==
- update for latest ImBuf changes
2010-05-08 20:57:09 +00:00
Andrea Weikert
df2ed9fa3b == MSVC 9 projectfiles ==
small update
2010-04-29 18:46:43 +00:00
Andrea Weikert
748ad6749e MSVC 9 projectfiles
* update: SCA_PythonKeyboard.c and SCA_PythonMouse.c
2010-04-18 17:09:35 +00:00
Andrea Weikert
49fa7d02a7 MSVC 9 projectfiles update
* blenlib/math_geom_inline.c
* also fix compile error with MSVC (snprintf not defined)
2010-04-15 17:44:48 +00:00
Andrea Weikert
5aed24c84e MSVC 9 projectfiles
* forgot to add modifiers.vcproj yesterday - sorry!
2010-04-14 16:59:33 +00:00
Andrea Weikert
2c0287660c MSVC projectfiles update
* big modifier refactor
* added include path to pthreads for BL_gpu.vcproj and blender.vcproj - hopefully only temporarily. Is needed because BLI_threads.h includes <pthreads.h> header!!!
2010-04-13 19:39:28 +00:00
Andrea Weikert
3c6a0274b9 cleanup
* removed code that could lead to Blender writing in the Windows directory - is very old cruft and doesn't work on recent versions of Windows anymore and rightly so :)
2010-03-31 18:02:56 +00:00
Andrea Weikert
d7b2f685f0 MSVC 9 projectfiles
* maintenance - removed BLI_dynamiclist.c
2010-03-31 17:46:17 +00:00
Andrea Weikert
0decc7def5 MSVC 9 projectfiles
Updated RNA project to generate the files in the build directory rather than inside the source tree. This removes the need to manually deleting those files when building from the same tree with scons or cmake.
2010-03-27 10:48:49 +00:00
Andrea Weikert
0c1828b229 MSVC 9 projectfiles
- small update
2010-03-24 19:04:17 +00:00
Andrea Weikert
411cc8e5b6 fix [#21666] selecting images in file browser before thumbnail is created deselects them when the thumb is created
- was overwriting the selection flag
- also fixed mismatching prototype (own eek!)

Also added small update of MSVC 9 projectfiles (blendkernel/image_gen.c)
2010-03-23 18:46:21 +00:00
Andrea Weikert
c0b3ab6ceb filebrowser:
* move own thread handling for thumbnails to WM_jobs 
* cleanup of thumbnail creation code
* added function to kill the job, which actually allows thread to terminate gracefully

vc9 projectfiles:
* fixed some missing includes for release target!
2010-03-10 19:30:20 +00:00
Joseph Eagar
71003b9bcc merge with trunk at r27259 and commit of a patch by anthony jones to fix msvc (though further work may be needed because changes made by the merge 2010-03-09 04:32:40 +00:00
Andrea Weikert
187b3bc1eb MSVC projectfiles_vc9:
* maintenance
2010-03-08 18:36:17 +00:00
Andrea Weikert
bdd17df0bc MSVC projectfiles_vc9:
* added file blf.c in BPY_python
* added headers from generic subdir to project
2010-03-01 18:34:33 +00:00
Andrea Weikert
9789e08942 MSVC projectfiles_vc9 maintenance
* added ghost dependency to blenlib
* new file bpy_rna_callback.c in blender/python
2010-02-28 09:46:21 +00:00
Benoit Bolsee
37b9c9fe4d VideoTexture: improvements to image data access API.
- Use BGL buffer instead of string for image data.
- Add buffer interface to image source.
- Allow customization of pixel format.
- Add valid property to check if the image data is available.

The image property of all Image source objects will now
return a BGL 'buffer' object. Previously it was returning
a string, which was not working at all with Python 3.1.
The BGL buffer type allows sequence access to bytes and
is directly usable in BGL OpenGL wrapper functions.
The buffer is formated as a 1 dimensional array of bytes
with 4 bytes per pixel in RGBA order.

BGL buffers will also be accepted in the ImageBuff load()
and plot() functions.

It is possible to customize the pixel format by using
the VideoTexture.imageToArray(image, mode) function:
the first argument is a Image source object, the second
optional argument is a format string using the R, G, B,
A, 0 and 1 characters. For example "BGR" means that each
pixel will be 3 bytes, corresponding to the Blue, Green
and Red channel in that order. Use 0 for a fixed hex 00
value, 1 for hex FF. The default mode is "RGBA".

All Image source objects now support the buffer interface
which allows to create memoryview objects for direct access
to the image internal buffer without memory copy. The buffer
format is one dimensional array of bytes with 4 bytes per
pixel in RGBA order. The buffer is writable, which allows
custom modifications of the image data.

v = memoryview(source)

A bug in the Python 3.1 buffer API will cause a crash if
the memoryview object cannot be created. Therefore, you
must always check first that an image data is available
before creating a memoryview object. Use the new valid
attribute for that:

if source.valid:
    v = memoryview(source)
    ...	

Note: the BGL buffer object itself does not yet support
the buffer interface.

Note: the valid attribute makes sense only if you use
image source in conjunction with texture object like this:

# refresh texture but keep image data in memory
texture.refresh(False)
if texture.source.valid:
    v = memoryview(texture.source)
    # process image
    ...
    # invalidate image for next texture refresh
    texture.source.refresh()

Limitation: While memoryview objects exist, the image cannot be
resized. Resizing occurs with ImageViewport objects when the
viewport size is changed or with ImageFFmpeg when a new image
is reloaded for example. Any attempt to resize will cause a
runtime error. Delete the memoryview objects is you want to
resize an image source object.
2010-02-21 22:20:00 +00:00
Benoit Bolsee
115fc34dd3 Update MSVC project files. 2010-02-21 22:15:25 +00:00
Benoit Bolsee
ce26d457ba Support GPU image auto_refresh also for movie (was for sequence only). 2010-02-13 21:24:13 +00:00
Lukas Steiblys
51cc200fa3 another vc9 projectfile fix 2010-02-11 22:28:51 +00:00
Lukas Steiblys
88226d02e9 updated VC9 project files 2010-02-11 22:05:54 +00:00
Andrea Weikert
68bb7e38ab MSVC projectfiles vc9
* fix for audio: added missing defines for WITH_OPENAL, WITH_JACK, WITH_SDL
* fixed linking for OpenAl, was still linking OpenAl32.dll instead of wrap_oal.dll
Should now work same as other buildsystems. 
Quick test showed Yay! Sound in sequencer back :)
2010-02-09 20:10:55 +00:00
Benoit Bolsee
81fd89c8e0 BGE: VideoTexture was not included, missing WITH_FFMEG defined. Fixed in all building system. 2010-02-07 14:12:39 +00:00
Benoit Bolsee
b6c643c19f Update MSVC project files. 2010-02-03 21:14:50 +00:00
Arystanbek Dyussenov
8597925736 COLLADA branch: updated vc9 project files and w32 scons config. 2010-01-30 18:03:18 +00:00
Joseph Eagar
20fac2eca7 The Death Of Editmesh - Part 1
I've removed editmesh altogether (other then scanfill, which is
seperate code that happens to reuse the editmesh structures).
The compatibility layer I had written for old editmesh tools
was more trouble then it was worth, though it did help in the 
early stages of this project.

There's a fair amount of breakage, and there's bunches of tools
(mostly minor ones) I need to port over still.  Biggest ones are
join triangles and loop to region, and spin/screw.

This probably isn't really testable, I'll hopefully have more
work done on this soon, but might not be before next week.
2010-01-28 00:45:30 +00:00
Benoit Bolsee
c070841acd Update MSVC project files 2010-01-27 13:39:56 +00:00
Benoit Bolsee
217c2638cc Update MSVC project files 2010-01-26 16:31:00 +00:00
Benoit Bolsee
7389bd53f9 Update MSVC project files 2010-01-24 13:03:49 +00:00
Andrea Weikert
870df309c5 MSVC 9 projectfiles
* update for animviz.c
* updated glew dependency for ghost.
2010-01-17 14:47:14 +00:00
Joseph Eagar
219b472920 merge with trunk/2.5 at r25907 2010-01-13 07:26:11 +00:00
Joseph Eagar
67ff197cb1 Merge with trunk/2.5 at r25563
Most likely will not compile for others, I'd appreciate any build errors
and missing files reports (I can never seem to get everything committed
and all the build systems working without help).

Porting over the sculpt/multires tools was a breeze,
thanks goes to brecht for a design that didn't exclude
ngons and was easy to port.

Note that I've not tested externally-backed multires
file support yet.  Also, I still need to write version
patch code for some cases.

Some notes:

* Like trunk, topological changes don't update multires right,
  so e.g. subdivide will duplicate multires data on the new faces,
  instead of subdividing it.
* If you set the debug value (ctrl-alt-d) to 1 it'll turn on
  my experiments in speeding up sculpting on higher-res multires
  meshes (but note it makes partial redraw not completely accurate).
* There's a bug where you have to go through editmode to get out
  of sculpt mode, not sure if I inherited or created this myself.
2010-01-05 22:33:41 +00:00
Andrea Weikert
89033a6819 MSVC 9 projectfiles
* update for audaspace
* added object_bake.c
2010-01-05 19:22:48 +00:00
Benoit Bolsee
c033bf8957 MSVC project files 2009-12-22 19:50:20 +00:00
Andrea Weikert
ca16488e81 MSVC 9 compile fixes and cleanups
* added renamed files in revision 25337
* renamed BLI_util.h -> BLI_path_util.h for consistency
* cleanup of #includes: removed BLI_blenlib.h in favour of direct includes of the needed headerfiles in a few places.
* removed debug print in sequencer.c
* added missing include in blenkernel/blender.c -> bad dependency, needs to be fixed still
2009-12-13 17:46:30 +00:00
Andrea Weikert
86028a6631 Sequencer: Transform Strip updates (Durian wish)
Removed the Start/End Settings and the effect_fader from the sequencer transform strip. 
The transform strip can now only be animated directly by keying the Scale X, Scale Y, Translate X, Translate Y and Rotation values.

Caveat:
The uniform scale re-uses the Scale X value, so when changing the animation on Scale X in the non-uniform scaling case, the uniform scaling will be affected too. This was done to not break files for Durian. 

Note:
As much as I would have liked to clean up the TransformVars, it caused crashes of earlier versions of blender when opening the file.
The rna identifiers were also kept as to not break any existing animation on those keys.
2009-12-11 22:51:53 +00:00
Andrea Weikert
03634d47b0 MSVC projectfiles
* update for sculpt merge

NOTE: BLI_blenlib now uses functions in BL_gpu - I added the necessary include path to make it compile, but I'm not sure if this dependency shouldn't be avoided.
2009-12-11 18:02:42 +00:00
Andrea Weikert
ce65569708 MSVC 9 projectfiles
* added missing header BKE_sequence.h
* moved source folder back to correct place (was inside headers folder)
2009-12-10 00:20:19 +00:00
Andrea Weikert
177e27ea4b MSVC 9 projectfiles
* quick updates for bpy_driver.c
2009-12-09 18:38:55 +00:00
Andrea Weikert
d653b0c961 Few small things:
1. MSVC 9 projectfiles update (graph_header.c, action_header.c and nla_header.c removed)

2. Fix for opening the filebrowser when saving file for the first time (untitled.blend) from file menu

3. Add CROSS effect sequence type back to menu. (Durian fix)
Note: Removed SEQ_EFFECT from rna, since this no actual sequence type, but rather used to check for the effect bit.
2009-12-08 00:57:14 +00:00
Benoit Bolsee
1dcca75e04 Update MSVC9 project files 2009-12-04 10:45:23 +00:00
Benoit Bolsee
6bfb3cf6ef Update MSVC9 project files 2009-12-04 10:37:24 +00:00
Joseph Eagar
5e506ac341 updated project files from Antony K Jones, along with a couple of compile fixes I think may fix the issues with compiling the GE, yay\! 2009-12-03 05:22:42 +00:00