Browse Source

Fix texture coords not matching tex crop area

After hitting TAB and changing to nex texture in texture mode, joints were not matchin the
actual texture coordinates. Fix here. There is another problem though. There is a problem
with videos that have not been allocated yet. There is no size for the texture, thus it is
not possible calculate the texture coods.
master
Krisjanis Rijnieks 9 years ago
parent
commit
abb17e88fe
  1. 4
      src/Commands/SetNextSourceCmd.cpp
  2. 1
      src/Commands/SetNextSourceCmd.h

4
src/Commands/SetNextSourceCmd.cpp

@ -98,6 +98,8 @@ void SetNextSourceCmd::exec(){
}else if(_sources[_nextSourceIndex].type == SourceType::SOURCE_TYPE_NONE){
_sourcesEditor->clearSource();
}
Gui::instance()->getTextureEditorWidget().createJoints();
}
void SetNextSourceCmd::undo(){
@ -125,6 +127,8 @@ void SetNextSourceCmd::undo(){
}else if(_sources[_sourceIndex].type == SourceType::SOURCE_TYPE_NONE){
_sourcesEditor->clearSource();
}
Gui::instance()->getTextureEditorWidget().createJoints();
}
} // namespace piMapper

1
src/Commands/SetNextSourceCmd.h

@ -4,6 +4,7 @@
#include "BaseSurface.h"
#include "SourcesEditorWidget.h"
#include "MediaServer.h"
#include "Gui.h"
namespace ofx {
namespace piMapper {

Loading…
Cancel
Save